Skip to content

Commit

Permalink
Return skylight always
Browse files Browse the repository at this point in the history
Apparently when using vanilla format, the saving can occur before emptiness map is initialized.
This makes vanilla format more reliable.
  • Loading branch information
ishland committed Dec 22, 2024
1 parent 5e74b60 commit 75fba1e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void setLightEnabled(final ChunkPos chunkPos, final boolean bl) {
@Override
public DataLayer getDataLayerData(final SectionPos pos) {
final ChunkAccess chunk = StarLightInterface.this.getAnyChunkNow(pos.getX(), pos.getZ());
if (chunk == null || (!StarLightInterface.this.isClientSide && !chunk.isLightCorrect()) || !chunk.getHighestGeneratedStatus().isOrAfter(ChunkStatus.LIGHT)) {
if (chunk == null || (!StarLightInterface.this.isClientSide && !chunk.isLightCorrect())) {
return null;
}

Expand All @@ -127,9 +127,9 @@ public DataLayer getDataLayerData(final SectionPos pos) {
return null;
}

if (((ExtendedChunk)chunk).getSkyEmptinessMap() == null) {
return null;
}
// if (((ExtendedChunk)chunk).getSkyEmptinessMap() == null) {
// return null;
// }

return ((ExtendedChunk)chunk).getSkyNibbles()[sectionY - StarLightInterface.this.minLightSection].toVanillaNibble();
}
Expand Down

0 comments on commit 75fba1e

Please sign in to comment.