Merge pull request #362 from StevenRS11/1.20.1-multiplatform

fixed lighting when loading pocket dungeons
This commit is contained in:
Waterpicker 2023-10-23 08:17:02 -05:00 committed by GitHub
commit 6118501a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ public class RelativeBlockSample implements BlockGetter, LevelWriter {
} }
// do the lighting thing // 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 // TODO: depending on size of blockEntityContainer it might be faster to iterate over BlockPos.stream(intersection) instead
this.blockEntityContainer.forEach((blockPos, nbt) -> { this.blockEntityContainer.forEach((blockPos, nbt) -> {