From a90e75e182047823bae9b8a963279d3c01a3b8c8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 10 Dec 2021 22:48:12 +0100 Subject: [PATCH] Update TNTSimulator once again Signed-off-by: yoyosource --- .../features/simulator/TNTSimulator.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulator.java b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulator.java index ad07eac8..6efa9600 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulator.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/simulator/TNTSimulator.java @@ -413,8 +413,8 @@ public class TNTSimulator { SWInventory swInventory = new SWInventory(player, 54, "TNT konfigurieren"); // Change Count of spawned TNT - swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> { - setCount(count + (clickType.isShiftClick() ? 10 : 1)); + swInventory.setItem(1, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> { + setCount(count + (clickType.isShiftClick() ? 5 : 1)); editTNT(); })); SWItem countItem = new SWItem(Material.TNT, "§7TNT-Anzahl §8- §e" + count, LORE, false, clickType -> changeCount(player, "Anzahl TNT", count, c -> { @@ -423,8 +423,8 @@ public class TNTSimulator { }, this::editTNT)); countItem.getItemStack().setAmount(count); swInventory.setItem(10, countItem); - swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-10"), false, clickType -> { - setCount(count - (clickType.isShiftClick() ? 10 : 1)); + swInventory.setItem(19, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> { + setCount(count - (clickType.isShiftClick() ? 5 : 1)); editTNT(); })); @@ -445,8 +445,8 @@ public class TNTSimulator { })); // Change FuseTicks - swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", clickType -> { - setFuseTicks(fuseTicks + 1); + swInventory.setItem(3, new SWItem(SWItem.getDye(10), "§7+1", Arrays.asList("§eShift §7Click für §e+5"), false, clickType -> { + setFuseTicks(fuseTicks + (clickType.isShiftClick() ? 5 : 1)); editTNT(); })); SWItem fuseTickItem = new SWItem(Material.CLOCK, "§7Lebensdauer §8- §e" + fuseTicks, LORE, false, clickType -> changeCount(player, "Fuse-Ticks", fuseTicks, tick -> { @@ -455,8 +455,8 @@ public class TNTSimulator { }, this::editTNT)); fuseTickItem.getItemStack().setAmount(Math.max(fuseTicks, 1)); swInventory.setItem(12, fuseTickItem); - swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", clickType -> { - setFuseTicks(fuseTicks - 1); + swInventory.setItem(21, new SWItem(SWItem.getDye(1), "§7-1", Arrays.asList("§eShift §7Click für §e-5"), false, clickType -> { + setFuseTicks(fuseTicks - (clickType.isShiftClick() ? 5 : 1)); editTNT(); }));