From f3db5ea48341575565611982d87767cf980f2c7b Mon Sep 17 00:00:00 2001 From: Jsinco Date: Sun, 28 Jun 2026 22:22:08 -0400 Subject: [PATCH] Fix MC-307918 --- .../net/minecraft/world/level/block/SculkBlock.java.patch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-server/patches/sources/net/minecraft/world/level/block/SculkBlock.java.patch b/paper-server/patches/sources/net/minecraft/world/level/block/SculkBlock.java.patch index 866bae4bf2d9..f4289c5fdd99 100644 --- a/paper-server/patches/sources/net/minecraft/world/level/block/SculkBlock.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/level/block/SculkBlock.java.patch @@ -11,3 +11,11 @@ } return Math.max(0, charge - xpPerGrowthSpawn); +@@ -84,6 +_,7 @@ + int growthCount = 0; + + for (BlockPos blockPos : BlockPos.betweenClosed(pos.offset(-4, 0, -4), pos.offset(4, 2, 4))) { ++ if (level instanceof net.minecraft.server.level.WorldGenRegion worldGenRegion && !worldGenRegion.isWithinWriteZone(blockPos)) continue; // Paper - Fix MC-307918 + BlockState state = level.getBlockState(blockPos); + if (state.is(Blocks.SCULK_SENSOR) || state.is(Blocks.SCULK_SHRIEKER)) { + growthCount++;