Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 19:40:07 +01:00
12 Zeilen
682 B
Diff
12 Zeilen
682 B
Diff
--- a/net/minecraft/server/BlockWaterLily.java
|
|
+++ b/net/minecraft/server/BlockWaterLily.java
|
|
@@ -11,7 +11,7 @@
|
|
@Override
|
|
public void a(IBlockData iblockdata, World world, BlockPosition blockposition, Entity entity) {
|
|
super.a(iblockdata, world, blockposition, entity);
|
|
- if (world instanceof WorldServer && entity instanceof EntityBoat) {
|
|
+ if (world instanceof WorldServer && entity instanceof EntityBoat && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(entity, blockposition, Blocks.AIR.getBlockData()).isCancelled()) { // CraftBukkit
|
|
world.a(new BlockPosition(blockposition), true, entity);
|
|
}
|
|
|