Add Custom Callbacks for SWListInv #218
@ -55,8 +55,10 @@ public class SWListInv<T> extends SWInventory {
|
||||
public void open(){
|
||||
opened = true;
|
||||
inventory.clear();
|
||||
callbacks.clear();
|
||||
setCallback(-999, (ClickType click) -> player.closeInventory());
|
||||
callbacks.keySet().stream().filter(i -> i < 0).forEach(callbacks::remove);
|
||||
if(!callbacks.containsKey(-999)) {
|
||||
setCallback(-999, (ClickType click) -> player.closeInventory());
|
||||
}
|
||||
|
||||
if (sizeBiggerMax()) {
|
||||
if (page != 0) {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren