2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/monster/EntityRavager.java
|
|
|
|
+++ b/net/minecraft/world/entity/monster/EntityRavager.java
|
2023-03-14 17:30:00 +01:00
|
|
|
@@ -170,7 +170,7 @@
|
2021-11-21 23:00:00 +01:00
|
|
|
IBlockData iblockdata = this.level.getBlockState(blockposition);
|
2019-04-29 10:11:13 +02:00
|
|
|
Block block = iblockdata.getBlock();
|
|
|
|
|
|
|
|
- if (block instanceof BlockLeaves) {
|
2021-11-21 23:00:00 +01:00
|
|
|
+ if (block instanceof BlockLeaves && !org.bukkit.craftbukkit.event.CraftEventFactory.callEntityChangeBlockEvent(this, blockposition, net.minecraft.world.level.block.Blocks.AIR.defaultBlockState()).isCancelled()) { // CraftBukkit
|
|
|
|
flag = this.level.destroyBlock(blockposition, true, this) || flag;
|
2019-04-29 10:11:13 +02:00
|
|
|
}
|
|
|
|
}
|