mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
SPIGOT-5270: Call BlockSpreadEvent when bamboo saplings grow
By: Brokkonaut <hannos17@gmx.de>
This commit is contained in:
parent
12a0309e1e
commit
41214370d2
1 changed files with 10 additions and 0 deletions
10
paper-server/nms-patches/BlockBambooSapling.patch
Normal file
10
paper-server/nms-patches/BlockBambooSapling.patch
Normal file
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue