Dieser Commit ist enthalten in:
Ursprung
6ddc045968
Commit
441286613b
@ -74,7 +74,11 @@ public class SWInventory implements Listener {
|
|||||||
|
|
||||||
public void setItem(int pos, ItemStack itemStack, InvCallback c) {
|
public void setItem(int pos, ItemStack itemStack, InvCallback c) {
|
||||||
inventory.setItem(pos, itemStack);
|
inventory.setItem(pos, itemStack);
|
||||||
|
if(c != null) {
|
||||||
callbacks.put(pos, inventoryClickEvent -> c.clicked(inventoryClickEvent.getClick()));
|
callbacks.put(pos, inventoryClickEvent -> c.clicked(inventoryClickEvent.getClick()));
|
||||||
|
} else {
|
||||||
|
callbacks.remove(pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setItem(int pos, SWItem item) {
|
public void setItem(int pos, SWItem item) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren