From 180ad328ce9e6fa8f4a604e319294958ae8ee706 Mon Sep 17 00:00:00 2001 From: Tamion <70228790+notTamion@users.noreply.github.com> Date: Sun, 3 Nov 2024 11:26:45 +0100 Subject: [PATCH] fix --- ...-belowZeroGenerationInExistingChunks.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch diff --git a/patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch b/patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch new file mode 100644 index 0000000000..a27151bc80 --- /dev/null +++ b/patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Tamion <70228790+notTamion@users.noreply.github.com> +Date: Sun, 3 Nov 2024 11:26:10 +0100 +Subject: [PATCH] Fix belowZeroGenerationInExistingChunks + + +diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java +index 46f4b6706a1ca24ff6fc28960ad01a067109819f..44669ff294abed89aa39b33427eb5414e49df6e3 100644 +--- a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java ++++ b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkStorage.java +@@ -123,7 +123,10 @@ public class ChunkStorage implements AutoCloseable, ca.spottedleaf.moonrise.patc + boolean belowZeroGenerationInExistingChunks = (generatoraccess != null) ? ((ServerLevel) generatoraccess).spigotConfig.belowZeroGenerationInExistingChunks : org.spigotmc.SpigotConfig.belowZeroGenerationInExistingChunks; + + if (i <= 2730 && !belowZeroGenerationInExistingChunks) { +- stopBelowZero = "full".equals(nbttagcompound.getCompound("Level").getString("Status")); ++ // Paper start - Fix belowZeroGenerationInExistingChunks ++ String status = nbttagcompound.getCompound("Level").getString("Status"); ++ stopBelowZero = "full".equals(status) || "mobs_spawned".equals(status); ++ // Paper end - Fix belowZeroGenerationInExistingChunks + } + // Spigot end +