mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 07:34:48 +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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue