From 7a806a3a419207409cdc66deb2bf60bae198e96e Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Fri, 16 Aug 2019 05:19:26 +0200 Subject: [PATCH] SPIGOT-5270: Call BlockSpreadEvent when bamboo saplings grow --- nms-patches/BlockBambooSapling.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nms-patches/BlockBambooSapling.patch diff --git a/nms-patches/BlockBambooSapling.patch b/nms-patches/BlockBambooSapling.patch new file mode 100644 index 0000000000..9dd46c4913 --- /dev/null +++ b/nms-patches/BlockBambooSapling.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/server/BlockBambooSapling.java ++++ b/net/minecraft/server/BlockBambooSapling.java +@@ -74,6 +74,6 @@ + } + + protected void a(World world, BlockPosition blockposition) { +- world.setTypeAndData(blockposition.up(), (IBlockData) Blocks.BAMBOO.getBlockData().set(BlockBamboo.e, BlockPropertyBambooSize.SMALL), 3); ++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockSpreadEvent(world, blockposition, blockposition.up(), (IBlockData) Blocks.BAMBOO.getBlockData().set(BlockBamboo.e, BlockPropertyBambooSize.SMALL), 3); // CraftBukkit - BlockSpreadEvent + } + }