Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-14 20:10:05 +01:00
fix
Dieser Commit ist enthalten in:
Ursprung
ce0a041947
Commit
180ad328ce
22
patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch
Normale Datei
22
patches/server/1060-Fix-belowZeroGenerationInExistingChunks.patch
Normale Datei
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren