13
0

Fix GUI
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-03-16 16:51:09 +01:00
Ursprung d96cf47eff
Commit a1500d4368

Datei anzeigen

@ -101,14 +101,14 @@ public class GUI {
node.setReplaceColor(!node.replaceColor()); node.setReplaceColor(!node.replaceColor());
info(player, node, back); info(player, node, back);
}); });
inv.setItem(13, SWItem.getMaterial(node.allowReplay() ? "EYE_OF_ENDER" : "ENDER_PEAR"), "Replay Wiedergabe", Arrays.asList("§7Aktuell: " + (node.replaceColor()?"§aAn":"§4Aus"), "§7Zum §lAusschaulten", "§7anklicken"), false, clickType -> { inv.setItem(13, SWItem.getMaterial(node.allowReplay() ? "EYE_OF_ENDER" : "ENDER_PEARL"), "Replay Wiedergabe", Arrays.asList("§7Aktuell: " + (node.replaceColor()?"§aAn":"§4Aus"), "§7Zum §lAusschaulten", "§7anklicken"), false, clickType -> {
if(node.allowReplay()) { if(node.allowReplay()) {
SWInventory confInv = new SWInventory(player, 9, "Wiedergabe der Schematic Dauerhaft sperren"); SWInventory confInv = new SWInventory(player, 9, "Wiedergabe dauerhaft sperren");
confInv.setItem(0, SWItem.getDye(1), (byte) 1, "§aAbbrechen", type -> { confInv.setItem(0, SWItem.getDye(10), (byte) 10, "§aBestätigen", type -> {
node.setAllowReplay(false);
info(player, node, back); info(player, node, back);
}); });
confInv.setItem(8, SWItem.getDye(10), (byte) 10, "§cBestätigen", type -> { confInv.setItem(8, SWItem.getDye(1), (byte) 1, "§cAbbrechen", type -> {
node.setAllowReplay(false);
info(player, node, back); info(player, node, back);
}); });
confInv.open(); confInv.open();