mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 15:44:49 +01:00
Make the dispenser check if the dispensed item has been changed before removing it. Fixes BUKKIT-316
This commit is contained in:
parent
6a79e506cf
commit
7586e7168b
1 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue