Fixed hopper pulls performing container validation on source block

This commit is contained in:
Intelli 2024-05-06 19:19:48 -06:00
parent 3e3496ad12
commit 6023c21ba9

View File

@ -28,7 +28,7 @@ public final class HopperPullListener {
}
}
ItemStack[] sourceContainer = Util.getContainerState(sourceHolder.getInventory().getContents());
ItemStack[] destinationContainer = Util.getContainerState(destinationHolder.getInventory().getContents());
ItemStack movedItem = item.clone();
final long taskStarted = InventoryChangeListener.tasksStarted.incrementAndGet();
@ -39,7 +39,7 @@ public final class HopperPullListener {
}
boolean abort = false;
boolean addedInventory = Util.canAddContainer(sourceContainer, movedItem, sourceHolder.getInventory().getMaxStackSize());
boolean addedInventory = Util.canAddContainer(destinationContainer, movedItem, destinationHolder.getInventory().getMaxStackSize());
if (!addedInventory) {
abort = true;
}