Fix hopper not marking source inv as changed (#9070)
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user