SteamWar/BauSystem2.0
Archiviert
12
0

Fix alignment
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2023-02-25 13:58:42 +01:00
Ursprung 599d717602
Commit 2dd5e16bda

Datei anzeigen

@ -137,28 +137,28 @@ public class TNTElementGUI {
inv.setItem(23, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_NEGATIVE_Z", player), clickType -> { // Z negative inv.setItem(23, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_NEGATIVE_Z", player), clickType -> { // Z negative
if (clickType == ClickType.DOUBLE_CLICK) return; if (clickType == ClickType.DOUBLE_CLICK) return;
Vector position = tntElement.getOwnPosition(); Vector position = tntElement.getOwnPosition();
align(position, new Vector(0, 0, 0.49)); align(position, new Vector(0.5, 0, 0.49));
tntElement.setPosition(position); tntElement.setPosition(position);
tntElement.change(); tntElement.change();
})); }));
inv.setItem(25, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_POSITIVE_Z", player), clickType -> { // Z positive inv.setItem(25, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_POSITIVE_Z", player), clickType -> { // Z positive
if (clickType == ClickType.DOUBLE_CLICK) return; if (clickType == ClickType.DOUBLE_CLICK) return;
Vector position = tntElement.getOwnPosition(); Vector position = tntElement.getOwnPosition();
align(position, new Vector(0, 0, 0.51)); align(position, new Vector(0.5, 0, 0.51));
tntElement.setPosition(position); tntElement.setPosition(position);
tntElement.change(); tntElement.change();
})); }));
inv.setItem(15, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_POSITIVE_X", player), clickType -> { // X positive inv.setItem(15, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_POSITIVE_X", player), clickType -> { // X positive
if (clickType == ClickType.DOUBLE_CLICK) return; if (clickType == ClickType.DOUBLE_CLICK) return;
Vector position = tntElement.getOwnPosition(); Vector position = tntElement.getOwnPosition();
align(position, new Vector(0.51, 0, 0)); align(position, new Vector(0.51, 0, 0.5));
tntElement.setPosition(position); tntElement.setPosition(position);
tntElement.change(); tntElement.change();
})); }));
inv.setItem(33, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_NEGATIVE_X", player), clickType -> { // X negative inv.setItem(33, new SWItem(Material.OAK_BUTTON, BauSystem.MESSAGE.parse("SIMULATOR_ALIGNMENT_NEGATIVE_X", player), clickType -> { // X negative
if (clickType == ClickType.DOUBLE_CLICK) return; if (clickType == ClickType.DOUBLE_CLICK) return;
Vector position = tntElement.getOwnPosition(); Vector position = tntElement.getOwnPosition();
align(position, new Vector(0.49, 0, 0)); align(position, new Vector(0.49, 0, 0.5));
tntElement.setPosition(position); tntElement.setPosition(position);
tntElement.change(); tntElement.change();
})); }));