From 299347e31d147e29840798f4dc0cba1b206c4037 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 22 Jul 2023 13:48:23 -0700 Subject: [PATCH] Fix hopper not marking source inv as changed (#9070) --- patches/server/Optimize-Hoppers.patch | 1 + 1 file changed, 1 insertion(+) diff --git a/patches/server/Optimize-Hoppers.patch b/patches/server/Optimize-Hoppers.patch index 0198d1f7cf..253c7dadef 100644 --- a/patches/server/Optimize-Hoppers.patch +++ b/patches/server/Optimize-Hoppers.patch @@ -129,6 +129,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + ItemStack movedItem = origItemStack; + final int originalItemCount = origItemStack.getCount(); + final int movedItemCount = Math.min(level.spigotConfig.hopperAmount, originalItemCount); ++ container.setChanged(); // original logic always marks source inv as changed even if no move happens. + movedItem.setCount(movedItemCount); + + if (!skipPullModeEventFire) {