From 267fa4acfa0cd2a4cf73f2f8dcb6c236ba28a492 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Sat, 4 Mar 2023 14:26:08 -0600 Subject: [PATCH] Fix ChunkWrapper isLightCorrect() for both singlePlayer and servers --- .../com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java | 4 ++-- coreSubProjects | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java b/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java index 27e2fd417..6010249da 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java +++ b/common/src/main/java/com/seibel/lod/common/wrappers/chunk/ChunkWrapper.java @@ -159,8 +159,8 @@ public class ChunkWrapper implements IChunkWrapper #else if (chunk instanceof LevelChunk) { - // called when connected to a server - return ((LevelChunk) chunk).isClientLightReady(); + // called when connected to a server (and sometimes when in a singleplayer world) + return ((LevelChunk) chunk).isClientLightReady() || chunk.isLightCorrect(); } else { diff --git a/coreSubProjects b/coreSubProjects index 07d92f95c..1a047e14b 160000 --- a/coreSubProjects +++ b/coreSubProjects @@ -1 +1 @@ -Subproject commit 07d92f95cbce4d3b04f8c47cbf015d069b61de9b +Subproject commit 1a047e14b6c11a1f94cacbfeb09242ce2431a389