Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-5270: Call BlockSpreadEvent when bamboo saplings grow
Dieser Commit ist enthalten in:
Ursprung
368f4e9940
Commit
7a806a3a41
10
nms-patches/BlockBambooSapling.patch
Normale Datei
10
nms-patches/BlockBambooSapling.patch
Normale Datei
@ -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
|
||||
}
|
||||
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren