13
0

Optimizing GUI
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Dieser Commit ist enthalten in:
Chaos 2022-02-07 09:37:19 +01:00
Ursprung bc5542204a
Commit 310c28d54b

Datei anzeigen

@ -68,11 +68,7 @@ public class GUI {
} }
inv.setItem(9, SWItem.getMaterial("LEASH"), "§eZurück", clickType -> { inv.setItem(9, SWItem.getMaterial("LEASH"), "§eZurück", clickType -> {
if(back != null) {
back.reOpen(); back.reOpen();
} else {
list(player);
}
}); });
if(node.getOwner() == user.getId()){ if(node.getOwner() == user.getId()){
@ -119,10 +115,9 @@ public class GUI {
}); });
selector.open(); selector.open();
}); });
Material finalMat = mat;
inv.setItem(16, Material.NAME_TAG, "§eUmbenennen", clickType -> { inv.setItem(16, Material.NAME_TAG, "§eUmbenennen", clickType -> {
SWAnvilInv anvilInv = new SWAnvilInv(player, node.getName() + " umbenennen", node.getName()); SWAnvilInv anvilInv = new SWAnvilInv(player, node.getName() + " umbenennen", node.getName());
anvilInv.setItem(finalMat); anvilInv.setItem(mat);
anvilInv.setCallback(s -> { anvilInv.setCallback(s -> {
SafeSchematicNode.Result result = SafeSchematicNode.setName(user, node, s); SafeSchematicNode.Result result = SafeSchematicNode.setName(user, node, s);
if(result.isSuccessful()) { if(result.isSuccessful()) {