3
0
Mirror von https://github.com/Moulberry/AxiomPaperPlugin.git synchronisiert 2024-11-16 21:30:08 +01:00
Dieser Commit ist enthalten in:
Moulberry 2023-09-28 16:49:55 +08:00
Ursprung f6cbe97890
Commit e68cbdbde2
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -245,8 +245,10 @@ public class SetBlockBufferPacketListener {
chunk.removeBlockEntity(blockPos); chunk.removeBlockEntity(blockPos);
} }
// Mark block changed
world.getChunkSource().blockChanged(blockPos); // todo: maybe simply resend chunk instead of this? world.getChunkSource().blockChanged(blockPos); // todo: maybe simply resend chunk instead of this?
// Update Light
if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) { if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) {
chunk.getSkyLightSources().update(chunk, x, by, z); chunk.getSkyLightSources().update(chunk, x, by, z);
lightEngine.checkBlock(blockPos); lightEngine.checkBlock(blockPos);

Datei anzeigen

@ -187,7 +187,10 @@ public class SetBlockPacketListener implements PluginMessageListener {
chunk.removeBlockEntity(blockPos); chunk.removeBlockEntity(blockPos);
} }
// Mark block changed
level.getChunkSource().blockChanged(blockPos); level.getChunkSource().blockChanged(blockPos);
// Update Light
if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) { if (LightEngine.hasDifferentLightProperties(chunk, blockPos, old, blockState)) {
chunk.getSkyLightSources().update(chunk, x, by, z); chunk.getSkyLightSources().update(chunk, x, by, z);
level.getChunkSource().getLightEngine().checkBlock(blockPos); level.getChunkSource().getLightEngine().checkBlock(blockPos);