Skip to content

Commit

Permalink
Don't update skylight sources on Paper
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed Oct 17, 2023
1 parent 55e85a3 commit a76aaba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void onPluginMessageReceived(@NotNull String channel, @NotNull Player buk
return;
}

boolean sendBlockEntitiesInChunks= friendlyByteBuf.readBoolean();
boolean sendBlockEntitiesInChunks = friendlyByteBuf.readBoolean();

Long2ObjectMap<CompressedBlockEntity> blockEntityMap = new Long2ObjectOpenHashMap<>();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ public void onPluginMessageReceived(@NotNull String channel, @NotNull Player buk

// Update Light
if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) {
chunk.getSkyLightSources().update(chunk, x, by, z);
// Note: Skylight Sources not currently needed on Paper due to Starlight
// This might change in the future, so be careful!
// chunk.getSkyLightSources().update(chunk, x, by, z);
level.getChunkSource().getLightEngine().checkBlock(blockPos);
}

Expand Down

0 comments on commit a76aaba

Please sign in to comment.