Remove redundant clone in Dropper InventoryMoveItemEvent

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2024-07-20 11:31:34 +10:00
parent cf07a707a1
commit 5454e3684d

View File

@ -45,7 +45,7 @@
+ 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);
+ if (event.isCancelled()) {
+ return;