mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 07:17:46 +01:00
SPIGOT-7620: Fix server crash when hoppers transfer items to double chests
By: 2008Choco <hawkeboyz2@hotmail.com>
This commit is contained in:
parent
65d9b916a9
commit
ad5b07669d
@ -78,7 +78,7 @@
|
||||
+ destinationInventory = new CraftInventory(iinventory);
|
||||
+ }
|
||||
+
|
||||
+ InventoryMoveItemEvent event = new InventoryMoveItemEvent(iinventory.getOwner().getInventory(), oitemstack, destinationInventory, true);
|
||||
+ InventoryMoveItemEvent event = new InventoryMoveItemEvent(tileentityhopper.getOwner().getInventory(), oitemstack, destinationInventory, true);
|
||||
+ world.getCraftServer().getPluginManager().callEvent(event);
|
||||
+ if (event.isCancelled()) {
|
||||
+ tileentityhopper.setItem(i, itemstack);
|
||||
|
Loading…
Reference in New Issue
Block a user