geforkt von Mirrors/Paper
SPIGOT-7620: Fix server crash when hoppers transfer items to double chests
By: 2008Choco <hawkeboyz2@hotmail.com>
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren