From a76aaba3d0a80353d187b94e166d98d5544c5740 Mon Sep 17 00:00:00 2001 From: Moulberry Date: Tue, 17 Oct 2023 08:54:18 +0800 Subject: [PATCH] Don't update skylight sources on Paper --- .../axiom/packet/RequestChunkDataPacketListener.java | 2 +- .../com/moulberry/axiom/packet/SetBlockPacketListener.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moulberry/axiom/packet/RequestChunkDataPacketListener.java b/src/main/java/com/moulberry/axiom/packet/RequestChunkDataPacketListener.java index 5a891e9..1692bb5 100644 --- a/src/main/java/com/moulberry/axiom/packet/RequestChunkDataPacketListener.java +++ b/src/main/java/com/moulberry/axiom/packet/RequestChunkDataPacketListener.java @@ -72,7 +72,7 @@ public class RequestChunkDataPacketListener implements PluginMessageListener { return; } - boolean sendBlockEntitiesInChunks= friendlyByteBuf.readBoolean(); + boolean sendBlockEntitiesInChunks = friendlyByteBuf.readBoolean(); Long2ObjectMap blockEntityMap = new Long2ObjectOpenHashMap<>(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); diff --git a/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java b/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java index 41b28a9..cb9ee48 100644 --- a/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java +++ b/src/main/java/com/moulberry/axiom/packet/SetBlockPacketListener.java @@ -191,7 +191,9 @@ public class SetBlockPacketListener implements PluginMessageListener { // 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); }