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:
Ursprung
55e85a3d0e
Commit
a76aaba3d0
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren