summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockWaterLily.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockWaterLily.patch')
-rw-r--r--nms-patches/BlockWaterLily.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/BlockWaterLily.patch b/nms-patches/BlockWaterLily.patch
new file mode 100644
index 00000000..30f32ef9
--- /dev/null
+++ b/nms-patches/BlockWaterLily.patch
@@ -0,0 +1,11 @@
+--- a/net/minecraft/server/BlockWaterLily.java
++++ b/net/minecraft/server/BlockWaterLily.java
+@@ -19,7 +19,7 @@
+
+ public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {
+ super.a(world, blockposition, iblockdata, entity);
+- if (entity instanceof EntityBoat) {
++ if (entity instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition.getX(), blockposition.getY(), blockposition.getZ(), Blocks.AIR, 0).isCancelled()) { // CraftBukkit
+ world.setAir(new BlockPosition(blockposition), true);
+ }
+