2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/BlockDispenser.java
|
|
|
|
+++ b/net/minecraft/server/BlockDispenser.java
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -8,6 +8,7 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
public static final BlockStateBoolean TRIGGERED = BlockStateBoolean.of("triggered");
|
2015-07-30 08:56:52 +02:00
|
|
|
public static final RegistryDefault<Item, IDispenseBehavior> REGISTRY = new RegistryDefault(new DispenseBehaviorItem());
|
2016-02-29 22:32:46 +01:00
|
|
|
protected Random d = new Random();
|
2014-11-25 22:32:16 +01:00
|
|
|
+ public static boolean eventFired = false; // CraftBukkit
|
|
|
|
|
|
|
|
protected BlockDispenser() {
|
|
|
|
super(Material.STONE);
|
2016-11-17 02:41:03 +01:00
|
|
|
@@ -82,6 +83,7 @@
|
|
|
|
IDispenseBehavior idispensebehavior = this.a(itemstack);
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2015-07-30 08:56:52 +02:00
|
|
|
if (idispensebehavior != IDispenseBehavior.NONE) {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ eventFired = false; // CraftBukkit - reset event status
|
2016-11-17 02:41:03 +01:00
|
|
|
tileentitydispenser.setItem(i, idispensebehavior.a(sourceblock, itemstack));
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
2016-11-17 02:41:03 +01:00
|
|
|
|