3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 23:50:54 +01:00
Paper/nms-patches/BlockReed.patch

12 Zeilen
708 B
Diff

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/BlockReed.java
+++ b/net/minecraft/server/BlockReed.java
2019-04-23 12:00:00 +10:00
@@ -33,7 +33,7 @@
2018-12-06 10:00:00 +11:00
int j = (Integer) iblockdata.get(BlockReed.AGE);
2018-07-15 10:00:00 +10:00
if (j == 15) {
2019-12-11 09:00:00 +11:00
- worldserver.setTypeUpdate(blockposition.up(), this.getBlockData());
+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(worldserver, blockposition.up(), this.getBlockData()); // CraftBukkit
worldserver.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, 0), 4);
2018-07-15 10:00:00 +10:00
} else {
2019-12-11 09:00:00 +11:00
worldserver.setTypeAndData(blockposition, (IBlockData) iblockdata.set(BlockReed.AGE, j + 1), 4);