Remove broken quickMoveStack implementation

This commit is contained in:
md_5 2022-04-04 20:17:00 +10:00
parent 5631e8bf4e
commit 2542945ef4
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -65,6 +65,15 @@
public void removeSlotListener(ICrafting icrafting) { public void removeSlotListener(ICrafting icrafting) {
this.containerListeners.remove(icrafting); this.containerListeners.remove(icrafting);
} }
@@ -325,7 +369,7 @@
}
public ItemStack quickMoveStack(EntityHuman entityhuman, int i) {
- return ((Slot) this.slots.get(i)).getItem();
+ return ItemStack.EMPTY; // CraftBukkit - previous implementation was useless and broken
}
public void clicked(int i, int j, InventoryClickType inventoryclicktype, EntityHuman entityhuman) {
@@ -381,7 +425,7 @@ @@ -381,7 +425,7 @@
} }
} else if (this.quickcraftStatus == 2) { } else if (this.quickcraftStatus == 2) {