Skip to content

Commit

Permalink
Fix dropper inventory var
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytv committed Dec 23, 2024
1 parent 17d76ae commit aa2c52b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
+ destinationInventory = containerAt.getOwner().getInventory();
+ }
+
+ org.bukkit.event.inventory.InventoryMoveItemEvent event = new org.bukkit.event.inventory.InventoryMoveItemEvent(containerAt.getOwner().getInventory(), oitemstack, destinationInventory, true);
+ org.bukkit.event.inventory.InventoryMoveItemEvent event = new org.bukkit.event.inventory.InventoryMoveItemEvent(dispenserBlockEntity.getOwner().getInventory(), oitemstack, destinationInventory, true);
+ level.getCraftServer().getPluginManager().callEvent(event);
+ if (event.isCancelled()) {
+ return;
Expand Down

0 comments on commit aa2c52b

Please sign in to comment.