diff options
Diffstat (limited to 'patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SugarCaneBlock.java.patch')
-rw-r--r-- | patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SugarCaneBlock.java.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SugarCaneBlock.java.patch b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SugarCaneBlock.java.patch new file mode 100644 index 0000000000..eb1ae72ea2 --- /dev/null +++ b/patch-remap/mache-spigotflower-stripped/net/minecraft/world/level/block/SugarCaneBlock.java.patch @@ -0,0 +1,13 @@ +--- a/net/minecraft/world/level/block/SugarCaneBlock.java ++++ b/net/minecraft/world/level/block/SugarCaneBlock.java +@@ -67,8 +63,8 @@ + int j = (Integer) blockstate.getValue(SugarCaneBlock.AGE); + + if (j == 15) { +- serverlevel.setBlockAndUpdate(blockpos.above(), this.defaultBlockState()); +- serverlevel.setBlock(blockpos, (BlockState) blockstate.setValue(SugarCaneBlock.AGE, 0), 4); ++ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(level, pos.above(), this.defaultBlockState()); // CraftBukkit ++ level.setBlock(pos, (IBlockData) state.setValue(SugarCaneBlock.AGE, 0), 4); + } else { + serverlevel.setBlock(blockpos, (BlockState) blockstate.setValue(SugarCaneBlock.AGE, j + 1), 4); + } |