SteamWar/BauSystem2.0
Archiviert
12
0

Made text input move of group relativ
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
D4rkr34lm 2024-04-07 12:56:26 +02:00
Ursprung 41fab57e1a
Commit 687cb4451e
2 geänderte Dateien mit 3 neuen und 21 gelöschten Zeilen

Datei anzeigen

@ -69,24 +69,6 @@ public final class SimulatorGroup {
});
}
public void moveToX(double x) {
elements.forEach(simulatorElement -> {
simulatorElement.getPosition().setX(x);
});
}
public void moveToY(double y) {
elements.forEach(simulatorElement -> {
simulatorElement.getPosition().setX(y);
});
}
public void moveToZ(double z) {
elements.forEach(simulatorElement -> {
simulatorElement.getPosition().setX(z);
});
}
public SWItem toItem(Player player, InvCallback groupCallback, InvCallback itemCallback) {
if (elements.size() == 1) {
return elements.get(0).toItem(player, itemCallback);

Datei anzeigen

@ -172,7 +172,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
if(!allTNT){
number = (double) Math.round(number);
}
simulatorGroup.moveToX(number);
simulatorGroup.move(number, 0, 0);
SimulatorWatcher.update(simulator);
return true;
}, this).setItem(Material.PAPER).open();
@ -192,7 +192,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
if(!allTNT){
number = (double) Math.round(number);
}
simulatorGroup.moveToY(number);
simulatorGroup.move(0, number, 0);
SimulatorWatcher.update(simulator);
return true;
}, this).setItem(Material.PAPER).open();
@ -212,7 +212,7 @@ public class SimulatorGroupSettingsGui extends SimulatorBaseGui {
if(!allTNT){
number = (double) Math.round(number);
}
simulatorGroup.moveToZ(number);
simulatorGroup.move(0, 0, number);
SimulatorWatcher.update(simulator);
return true;
}, this).setItem(Material.PAPER).open();