Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
840ae4e7b6
Commit
8bfb564a68
@ -101,6 +101,13 @@ public class TNTElementGUI {
|
|||||||
editOther(player, tntElement, () -> open(player, tntElement, back));
|
editOther(player, tntElement, () -> open(player, tntElement, back));
|
||||||
recalculate.set(true);
|
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();
|
editObserver.run();
|
||||||
tntElement.register(editObserver, player::closeInventory);
|
tntElement.register(editObserver, player::closeInventory);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren