summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockLeaves.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockLeaves.patch')
-rw-r--r--nms-patches/BlockLeaves.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/BlockLeaves.patch b/nms-patches/BlockLeaves.patch
index ffdc77a1..bb3a479d 100644
--- a/nms-patches/BlockLeaves.patch
+++ b/nms-patches/BlockLeaves.patch
@@ -6,13 +6,13 @@
+import org.bukkit.event.block.LeavesDecayEvent; // CraftBukkit
+
- public abstract class BlockLeaves extends BlockTransparent {
+ public abstract class BlockLeaves extends Block {
public static final BlockStateBoolean DECAYABLE = BlockStateBoolean.of("decayable");
-@@ -130,6 +132,14 @@
+@@ -132,6 +134,14 @@
}
- private void e(World world, BlockPosition blockposition) {
+ private void b(World world, BlockPosition blockposition) {
+ // CraftBukkit start
+ LeavesDecayEvent event = new LeavesDecayEvent(world.getWorld().getBlockAt(blockposition.getX(), blockposition.getY(), blockposition.getZ()));
+ world.getServer().getPluginManager().callEvent(event);