From 40ec0b663d9d49e9aa80a52c9f812fb6cee9d1e8 Mon Sep 17 00:00:00 2001 From: stevenrs11 Date: Mon, 23 Oct 2023 08:08:45 -0500 Subject: [PATCH] fixed lighting when loading pocket dungeons --- .../org/dimdev/dimdoors/util/schematic/RelativeBlockSample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/schematics/org/dimdev/dimdoors/util/schematic/RelativeBlockSample.java b/common/src/main/schematics/org/dimdev/dimdoors/util/schematic/RelativeBlockSample.java index bd36fe21..e1019d6d 100644 --- a/common/src/main/schematics/org/dimdev/dimdoors/util/schematic/RelativeBlockSample.java +++ b/common/src/main/schematics/org/dimdev/dimdoors/util/schematic/RelativeBlockSample.java @@ -189,7 +189,7 @@ public class RelativeBlockSample implements BlockGetter, LevelWriter { } // do the lighting thing - serverChunkManager.getLightEngine().lightChunk(chunk, false); + serverChunkManager.getLightEngine().initializeLight(chunk, true); // TODO: depending on size of blockEntityContainer it might be faster to iterate over BlockPos.stream(intersection) instead this.blockEntityContainer.forEach((blockPos, nbt) -> {