2016-03-06 03:05:59 +01:00
|
|
|
--- a/net/minecraft/server/BlockWaterLily.java
|
|
|
|
+++ b/net/minecraft/server/BlockWaterLily.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -20,7 +20,7 @@
|
2016-03-06 03:05:59 +01:00
|
|
|
|
|
|
|
public void a(World world, BlockPosition blockposition, IBlockData iblockdata, Entity entity) {
|
|
|
|
super.a(world, blockposition, iblockdata, entity);
|
|
|
|
- if (entity instanceof EntityBoat) {
|
2016-07-08 03:12:40 +02:00
|
|
|
+ if (entity instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR, 0).isCancelled()) { // CraftBukkit
|
2016-03-06 03:05:59 +01:00
|
|
|
world.setAir(new BlockPosition(blockposition), true);
|
|
|
|
}
|
2016-03-06 11:42:34 +01:00
|
|
|
|