mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Remove redundant clone in Dropper InventoryMoveItemEvent
By: md_5 <git@md-5.net>
This commit is contained in:
parent
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user