SteamWar/BauSystem2.0
Archiviert
12
0

Add delete icon in tnt menu
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-07-21 17:35:35 +02:00
Ursprung 840ae4e7b6
Commit 8bfb564a68

Datei anzeigen

@ -101,6 +101,13 @@ public class TNTElementGUI {
editOther(player, tntElement, () -> open(player, tntElement, back));
recalculate.set(true);
}));
// Delete tnt
inv.setItem(44, new SWItem(Material.BARRIER, BauSystem.MESSAGE.parse("SIMULATOR_TNT_SPAWN_REMOVE_TNT", player), clickType -> {
recalculate.set(true);
tntSimulator.remove(tntElement);
player.closeInventory();
}));
};
editObserver.run();
tntElement.register(editObserver, player::closeInventory);