From 084abd45460a6aa22e475a8bc11de12d58a65603 Mon Sep 17 00:00:00 2001 From: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Date: Sat, 14 Jun 2025 17:28:55 +0200 Subject: [PATCH] do not call BlockGrowEvent on each age grow for cactus this might be something we do in the future but it should be consistent with the rest too closes https://github.com/PaperMC/Paper/issues/12662 --- .../minecraft/world/level/block/CactusBlock.java.patch | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/paper-server/patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch b/paper-server/patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch index 4ea4f1ba5b..e5eea68e2e 100644 --- a/paper-server/patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/level/block/CactusBlock.java.patch @@ -1,6 +1,6 @@ --- a/net/minecraft/world/level/block/CactusBlock.java +++ b/net/minecraft/world/level/block/CactusBlock.java -@@ -58,25 +_,29 @@ +@@ -58,18 +_,22 @@ int ageValue = state.getValue(AGE); while (level.getBlockState(pos.below(i)).is(this)) { @@ -29,14 +29,6 @@ BlockState blockState = state.setValue(AGE, 0); level.setBlock(pos, blockState, 260); level.neighborChanged(blockState, blockPos, this, null, false); - } - - if (ageValue < 15) { -- level.setBlock(pos, state.setValue(AGE, ageValue + 1), 260); -+ org.bukkit.craftbukkit.event.CraftEventFactory.handleBlockGrowEvent(level, pos, state.setValue(AGE, ageValue + 1), 260); // Paper - } - } - } @@ -124,7 +_,8 @@ @Override