aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch')
-rw-r--r--patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch
new file mode 100644
index 0000000000..5b7f2f89bb
--- /dev/null
+++ b/patch-remap/mache-vineflower-stripped/net/minecraft/world/level/block/WaterlilyBlock.java.patch
@@ -0,0 +1,24 @@
+--- a/net/minecraft/world/level/block/WaterlilyBlock.java
++++ b/net/minecraft/world/level/block/WaterlilyBlock.java
+@@ -13,6 +13,9 @@
+ import net.minecraft.world.level.material.Fluids;
+ import net.minecraft.world.phys.shapes.CollisionContext;
+ import net.minecraft.world.phys.shapes.VoxelShape;
++// CraftBukkit start
++import org.bukkit.craftbukkit.event.CraftEventFactory;
++// CraftBukkit end
+
+ public class WaterlilyBlock extends BushBlock {
+ public static final MapCodec<WaterlilyBlock> CODEC = simpleCodec(WaterlilyBlock::new);
+@@ -31,6 +35,11 @@
+ public void entityInside(BlockState state, Level level, BlockPos pos, Entity entity) {
+ super.entityInside(state, level, pos, entity);
+ if (level instanceof ServerLevel && entity instanceof Boat) {
++ // CraftBukkit start
++ if (!CraftEventFactory.callEntityChangeBlockEvent(entity, pos, Blocks.AIR.defaultBlockState())) {
++ return;
++ }
++ // CraftBukkit end
+ level.destroyBlock(new BlockPos(pos), true, entity);
+ }
+ }