From d7c257e120996eab1eab7d2bc5a31749ccbe274a Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 8 Jul 2016 11:12:40 +1000 Subject: SPIGOT-2490: Villager farming event --- nms-patches/BlockWaterLily.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nms-patches/BlockWaterLily.patch') diff --git a/nms-patches/BlockWaterLily.patch b/nms-patches/BlockWaterLily.patch index 561facbf..83a6ae1d 100644 --- a/nms-patches/BlockWaterLily.patch +++ b/nms-patches/BlockWaterLily.patch @@ -5,7 +5,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 ++ if (entity instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR, 0).isCancelled()) { // CraftBukkit world.setAir(new BlockPosition(blockposition), true); } -- cgit v1.2.3