3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Make the dispenser check if the dispensed item has been changed before removing it. Fixes BUKKIT-316

Dieser Commit ist enthalten in:
h31ix 2012-04-03 19:21:38 -05:00 committet von feildmaster
Ursprung 6a79e506cf
Commit 7586e7168b

Datei anzeigen

@ -132,8 +132,10 @@ public class BlockDispenser extends BlockContainer {
return;
}
if (event.getItem().equals(bukkitItem)) {
// Actually remove the item
tileentitydispenser.splitStack(dispenseSlot, 1);
}
motX = event.getVelocity().getX();
motY = event.getVelocity().getY();