mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-31 22:30:15 +00:00
SPIGOT-7620: Fix server crash when hoppers transfer items to double chests
This commit is contained in:
parent
8b4abeb03a
commit
ff20043879
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…
Add table
Reference in a new issue