From 6cd6b91c368c65af36477e6e2fb6cf4b504c673f Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 4 Apr 2022 20:17:00 +1000 Subject: [PATCH] Remove broken quickMoveStack implementation By: md_5 --- .../net/minecraft/world/inventory/Container.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/paper-server/nms-patches/net/minecraft/world/inventory/Container.patch b/paper-server/nms-patches/net/minecraft/world/inventory/Container.patch index 4aa7e067b0..df523c7efc 100644 --- a/paper-server/nms-patches/net/minecraft/world/inventory/Container.patch +++ b/paper-server/nms-patches/net/minecraft/world/inventory/Container.patch @@ -65,6 +65,15 @@ public void removeSlotListener(ICrafting 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 @@ } } else if (this.quickcraftStatus == 2) {