summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockWaterLily.patch
blob: e055a69661dbc299edaf1124ef68a15f0070ee5d (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/BlockWaterLily.java
+++ b/net/minecraft/server/BlockWaterLily.java
@@ -10,7 +10,7 @@
 
     public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Entity entity) {
         super.a(iblockdata, world, blockposition, entity);
-        if (entity instanceof EntityBoat) {
+        if (entity instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.getBlockData()).isCancelled()) { // CraftBukkit
             world.setAir(new BlockPosition(blockposition), true);
         }