SteamWar/BauSystem2.0
Archiviert
12
0

Close #226 and #227 #230

Zusammengeführt
YoyoNow hat 7 Commits von SmallSimFixes nach master 2024-04-07 13:07:58 +02:00 zusammengeführt
2 geänderte Dateien mit 3 neuen und 21 gelöschten Zeilen
Nur Änderungen aus Commit 687cb4451e werden angezeigt - Alle Commits anzeigen

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) { public SWItem toItem(Player player, InvCallback groupCallback, InvCallback itemCallback) {
if (elements.size() == 1) { if (elements.size() == 1) {
return elements.get(0).toItem(player, itemCallback); return elements.get(0).toItem(player, itemCallback);

Datei anzeigen

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