diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockDispenser.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/BlockDispenser.java b/src/main/java/net/minecraft/server/BlockDispenser.java index 34665555..1debc7da 100644 --- a/src/main/java/net/minecraft/server/BlockDispenser.java +++ b/src/main/java/net/minecraft/server/BlockDispenser.java @@ -132,8 +132,10 @@ public class BlockDispenser extends BlockContainer { return; } - // Actually remove the item - tileentitydispenser.splitStack(dispenseSlot, 1); + if (event.getItem().equals(bukkitItem)) { + // Actually remove the item + tileentitydispenser.splitStack(dispenseSlot, 1); + } motX = event.getVelocity().getX(); motY = event.getVelocity().getY(); |