Fix dropper inventory var

This commit is contained in:
Nassim Jahnke 2024-12-23 20:21:31 +01:00
parent 17d76ae42b
commit aa2c52baac
No known key found for this signature in database
GPG key ID: EF6771C01F6EF02F

View file

@ -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;