mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 12:19:56 +01:00
17 lines
738 B
Diff
17 lines
738 B
Diff
|
@@ -8,6 +8,7 @@
|
||
|
public static final BlockStateBoolean TRIGGERED = BlockStateBoolean.of("triggered");
|
||
|
public static final RegistryDefault M = new RegistryDefault(new DispenseBehaviorItem());
|
||
|
protected Random N = new Random();
|
||
|
+ public static boolean eventFired = false; // CraftBukkit
|
||
|
|
||
|
protected BlockDispenser() {
|
||
|
super(Material.STONE);
|
||
|
@@ -78,6 +79,7 @@
|
||
|
|
||
|
if (idispensebehavior != IDispenseBehavior.a) {
|
||
|
ItemStack itemstack1 = idispensebehavior.a(sourceblock, itemstack);
|
||
|
+ eventFired = false; // CraftBukkit - reset event status
|
||
|
|
||
|
tileentitydispenser.setItem(i, itemstack1.count == 0 ? null : itemstack1);
|
||
|
}
|