Fix hopper not marking source inv as changed (#9070)

This commit is contained in:
Jake Potrebic 2023-07-22 13:48:23 -07:00
parent 5886ca41ac
commit 299347e31d

View file

@ -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) {