From 8ccb282e17a43d7160f4576b3a827f4a396c128f Mon Sep 17 00:00:00 2001 From: jojo Date: Wed, 20 Jan 2021 21:04:47 +0100 Subject: [PATCH] Fix TNTSimulator name --- .../src/de/steamwar/bausystem/cannonsimulator/TNTSimulator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulator.java b/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulator.java index 81ce7c6..498807a 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulator.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulator.java @@ -68,7 +68,7 @@ public class TNTSimulator { lore.add("§eX§8: §7" + tntSpawn.getPosition().getX()); lore.add("§eY§8: §7" + tntSpawn.getPosition().getY()); lore.add("§eZ§8: §7" + tntSpawn.getPosition().getZ()); - swListEntryList.add(new SWListInv.SWListEntry<>(new SWItem(Material.TNT, "§eTNT", lore, false, null), tntSpawn)); + swListEntryList.add(new SWListInv.SWListEntry<>(new SWItem(Material.TNT, "§eTNT" + (!tntSpawn.getName().isEmpty() ? " §8- §e" + tntSpawn.getName() : ""), lore, false, null), tntSpawn)); }); swListEntryList.sort(Comparator.comparing(SWListInv.SWListEntry::getObject));