From 2542945ef49093f6e1041dd817d6f640b7fc25b5 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 4 Apr 2022 20:17:00 +1000 Subject: [PATCH] Remove broken quickMoveStack implementation --- .../net/minecraft/world/inventory/Container.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nms-patches/net/minecraft/world/inventory/Container.patch b/nms-patches/net/minecraft/world/inventory/Container.patch index 4aa7e067b..df523c7ef 100644 --- a/nms-patches/net/minecraft/world/inventory/Container.patch +++ b/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) {