Mirror von
https://github.com/Moulberry/AxiomPaperPlugin.git
synchronisiert 2024-11-16 21:30:08 +01:00
Add comments
Dieser Commit ist enthalten in:
Ursprung
f6cbe97890
Commit
e68cbdbde2
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren