geforkt von Mirrors/Paper
Remove redundant clone in Dropper InventoryMoveItemEvent
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
cf07a707a1
Commit
5454e3684d
@ -45,7 +45,7 @@
|
|||||||
+ destinationInventory = iinventory.getOwner().getInventory();
|
+ destinationInventory = iinventory.getOwner().getInventory();
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ InventoryMoveItemEvent event = new InventoryMoveItemEvent(tileentitydispenser.getOwner().getInventory(), oitemstack.clone(), destinationInventory, true);
|
+ InventoryMoveItemEvent event = new InventoryMoveItemEvent(tileentitydispenser.getOwner().getInventory(), oitemstack, destinationInventory, true);
|
||||||
+ worldserver.getCraftServer().getPluginManager().callEvent(event);
|
+ worldserver.getCraftServer().getPluginManager().callEvent(event);
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ return;
|
+ return;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren