13
0

Make Outside-Click do Updir #135

Zusammengeführt
Chaoscaot hat 1 Commits von gui_outside_click_behavior nach master 2022-10-29 15:10:15 +02:00 zusammengeführt

Datei anzeigen

@ -46,6 +46,13 @@ public class GUI {
@Override
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) {
inv.setItem(49, Material.AIR, "", clickType -> {});
} else {
@ -187,7 +194,7 @@ public class GUI {
}
}
inv.setCallback(-999, click -> player.closeInventory());
inv.setCallback(-999, click -> back.reOpen());
inv.open();
}