Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
19 Zeilen
942 B
Diff
19 Zeilen
942 B
Diff
--- ../work/decompile-8eb82bde//net/minecraft/server/BlockDispenser.java 2014-11-28 11:22:55.678823169 +0000
|
|
+++ src/main/java/net/minecraft/server/BlockDispenser.java 2014-11-28 11:01:54.000000000 +0000
|
|
@@ -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);
|
|
}
|