mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Call EntityChangedBlockEvent for water splash potions extinguishing fire
By: BlackHole <black-hole@live.com>
This commit is contained in:
parent
b5a813d40d
commit
84bc13a366
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue