13
0

Merge pull request 'Make Outside-Click do Updir' (#135) from gui_outside_click_behavior into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #135
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Chaoscaot 2022-10-29 15:10:15 +02:00
Commit 149a2e9a27

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();
}