13
0
geforkt von Mirrors/Paper

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

Dieser Commit ist enthalten in:
Jake Potrebic 2023-07-22 13:48:23 -07:00
Ursprung 5886ca41ac
Commit 299347e31d

Datei anzeigen

@ -129,6 +129,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ ItemStack movedItem = origItemStack; + ItemStack movedItem = origItemStack;
+ final int originalItemCount = origItemStack.getCount(); + final int originalItemCount = origItemStack.getCount();
+ final int movedItemCount = Math.min(level.spigotConfig.hopperAmount, originalItemCount); + 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); + movedItem.setCount(movedItemCount);
+ +
+ if (!skipPullModeEventFire) { + if (!skipPullModeEventFire) {