3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-12 19:20:11 +01:00

Don't update skylight sources on Paper

Dieser Commit ist enthalten in:
Moulberry 2023-10-17 08:54:18 +08:00
Ursprung 55e85a3d0e
Commit a76aaba3d0
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -72,7 +72,7 @@ public class RequestChunkDataPacketListener implements PluginMessageListener {
return; return;
} }
boolean sendBlockEntitiesInChunks= friendlyByteBuf.readBoolean(); boolean sendBlockEntitiesInChunks = friendlyByteBuf.readBoolean();
Long2ObjectMap<CompressedBlockEntity> blockEntityMap = new Long2ObjectOpenHashMap<>(); Long2ObjectMap<CompressedBlockEntity> blockEntityMap = new Long2ObjectOpenHashMap<>();
ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baos = new ByteArrayOutputStream();

Datei anzeigen

@ -191,7 +191,9 @@ public class SetBlockPacketListener implements PluginMessageListener {
// Update Light // Update Light
if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) { 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); level.getChunkSource().getLightEngine().checkBlock(blockPos);
} }