Dieser Commit ist enthalten in:
Commit
465d2a32b1
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren