13
0
geforkt von Mirrors/Paper
Paper/nms-patches/BlockWaterLily.patch

12 Zeilen
682 B
Diff

--- a/net/minecraft/server/BlockWaterLily.java
+++ b/net/minecraft/server/BlockWaterLily.java
2019-04-23 04:00:00 +02:00
@@ -11,7 +11,7 @@
@Override
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);
2019-12-10 23:00:00 +01:00
- 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);
}
2016-03-06 11:42:34 +01:00