mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 05:40:00 +03:00
12 lines
522 B
Diff
12 lines
522 B
Diff
--- ../src-base/minecraft/net/minecraft/block/BlockLilyPad.java
|
|
+++ ../src-work/minecraft/net/minecraft/block/BlockLilyPad.java
|
|
@@ -34,7 +34,7 @@
|
|
{
|
|
super.onEntityCollidedWithBlock(worldIn, pos, state, entityIn);
|
|
|
|
- if (entityIn instanceof EntityBoat)
|
|
+ if (entityIn instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entityIn, pos, Blocks.AIR, 0).isCancelled())
|
|
{
|
|
worldIn.destroyBlock(new BlockPos(pos), true);
|
|
}
|