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