13
0
geforkt von Mirrors/Paper

Add another slot sanity check

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-11-03 14:49:55 +10:00
Ursprung c0e6952a9a
Commit 0d2a5216f6

Datei anzeigen

@ -20,7 +20,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
int j2;
if (actionType == ClickType.SWAP) {
+ if (slotIndex < 0) return; // Paper
+ if (slotIndex < 0 || button < 0) return; // Paper
slot2 = (Slot) this.slots.get(slotIndex);
itemstack1 = playerinventory.getItem(button);
itemstack = slot2.getItem();