13
0

Make Outside-Click do Updir
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2022-10-29 13:20:25 +02:00
Ursprung 959a17b89f
Commit 7afe6d73c8

Datei anzeigen

@ -46,6 +46,13 @@ public class GUI {
@Override @Override
public void onListRender(SchematicSelector selector, SWListInv<SchematicNode> inv, SchematicNode parent) { public void onListRender(SchematicSelector selector, SWListInv<SchematicNode> inv, SchematicNode parent) {
inv.setCallback(-999, (ClickType click) -> {
if(parent == null) {
player.closeInventory();
} else {
selector.reOpenDirUp();
}
});
if(parent == null) { if(parent == null) {
inv.setItem(49, Material.AIR, "", clickType -> {}); inv.setItem(49, Material.AIR, "", clickType -> {});
} else { } else {
@ -187,7 +194,7 @@ public class GUI {
} }
} }
inv.setCallback(-999, click -> player.closeInventory()); inv.setCallback(-999, click -> back.reOpen());
inv.open(); inv.open();
} }