From a602cb2e8ce8891ebdc9cab2e39fb0fce2e8cc76 Mon Sep 17 00:00:00 2001 From: BlackHole Date: Wed, 9 Mar 2016 19:21:29 +0100 Subject: [PATCH] Call EntityChangedBlockEvent for water splash potions extinguishing fire --- nms-patches/EntityPotion.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nms-patches/EntityPotion.patch b/nms-patches/EntityPotion.patch index 8d6ccdb591..b846965141 100644 --- a/nms-patches/EntityPotion.patch +++ b/nms-patches/EntityPotion.patch @@ -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); + } +