mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 22:40:21 +01:00
Fix dropper inventory var
This commit is contained in:
parent
17d76ae42b
commit
aa2c52baac
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@
|
||||||
+ destinationInventory = containerAt.getOwner().getInventory();
|
+ 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);
|
+ level.getCraftServer().getPluginManager().callEvent(event);
|
||||||
+ if (event.isCancelled()) {
|
+ if (event.isCancelled()) {
|
||||||
+ return;
|
+ return;
|
||||||
|
|
Loading…
Reference in a new issue