Archiviert
13
0

Check if is light status or above / isLightOn / starlight version fits (#7888)

Dieser Commit ist enthalten in:
Owen 2022-06-08 12:32:49 -04:00 committet von GitHub
Ursprung b3b63d3a02
Commit 222391f809
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -5040,7 +5040,7 @@ index 5ce6a2b83546f4dbc3183a386f51b4bacc173744..a7231ceda4f3e96c0e0c11eee953f129
this.fluidTicks = fluidTickScheduler; this.fluidTicks = fluidTickScheduler;
} }
diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java diff --git a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java
index be9c15fe141ede1132dbe07ba4bfcf22036ab194..3c220d833ca6bb9409bc71d6f61e61783dba236b 100644 index be9c15fe141ede1132dbe07ba4bfcf22036ab194..3a2d6200d41c9758763d7a975d62e6e6842da3e2 100644
--- a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java --- a/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java
+++ b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java +++ b/src/main/java/net/minecraft/world/level/chunk/storage/ChunkSerializer.java
@@ -94,6 +94,14 @@ public class ChunkSerializer { @@ -94,6 +94,14 @@ public class ChunkSerializer {
@ -5096,7 +5096,7 @@ index be9c15fe141ede1132dbe07ba4bfcf22036ab194..3c220d833ca6bb9409bc71d6f61e6178
- if (flag3 || flag4) { - if (flag3 || flag4) {
- if (!flag2) { - if (!flag2) {
+ // Paper start - rewrite the light engine + // Paper start - rewrite the light engine
+ if (true || flag3 || flag4) { + if (flag) {
+ if ((flag3 || flag4) && !flag2) { + if ((flag3 || flag4) && !flag2) {
tasksToExecuteOnMain.add(() -> { // Paper - delay this task since we're executing off-main tasksToExecuteOnMain.add(() -> { // Paper - delay this task since we're executing off-main
lightengine.retainData(chunkPos, true); lightengine.retainData(chunkPos, true);