Archiviert
13
0

Call EntityChangedBlockEvent for water splash potions extinguishing fire

Dieser Commit ist enthalten in:
BlackHole 2016-03-09 19:21:29 +01:00 committet von md_5
Ursprung daf45148d1
Commit a602cb2e8c

Datei anzeigen

@ -115,3 +115,11 @@
}
}
@@ -151,6 +186,7 @@
private void a(BlockPosition blockposition) {
if (this.world.getType(blockposition).getBlock() == Blocks.FIRE) {
+ if (org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this, blockposition.getX(), blockposition.getY(), blockposition.getZ(), Blocks.AIR, 0).isCancelled()) return; // CraftBukkit
this.world.setTypeAndData(blockposition, Blocks.AIR.getBlockData(), 2);
}