mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-19 13:51:22 +01:00
Don't relight dynamic chunk
This commit is contained in:
parent
3ea09e243f
commit
4b9e260f23
@ -781,7 +781,7 @@ public abstract class Instance implements Block.Getter, Block.Setter,
|
|||||||
int coordY = ChunkUtils.toSectionRelativeCoordinate(blockY);
|
int coordY = ChunkUtils.toSectionRelativeCoordinate(blockY);
|
||||||
int coordZ = ChunkUtils.toSectionRelativeCoordinate(blockZ);
|
int coordZ = ChunkUtils.toSectionRelativeCoordinate(blockZ);
|
||||||
|
|
||||||
if (light.requiresUpdate()) LightingChunk.relightSection(chunk.getInstance(), chunk.chunkX, sectionCoordinate, chunk.chunkZ);
|
if (chunk instanceof LightingChunk && light.requiresUpdate()) LightingChunk.relightSection(chunk.getInstance(), chunk.chunkX, sectionCoordinate, chunk.chunkZ);
|
||||||
return light.getLevel(coordX, coordY, coordZ);
|
return light.getLevel(coordX, coordY, coordZ);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -796,7 +796,7 @@ public abstract class Instance implements Block.Getter, Block.Setter,
|
|||||||
int coordY = ChunkUtils.toSectionRelativeCoordinate(blockY);
|
int coordY = ChunkUtils.toSectionRelativeCoordinate(blockY);
|
||||||
int coordZ = ChunkUtils.toSectionRelativeCoordinate(blockZ);
|
int coordZ = ChunkUtils.toSectionRelativeCoordinate(blockZ);
|
||||||
|
|
||||||
if (light.requiresUpdate()) LightingChunk.relightSection(chunk.getInstance(), chunk.chunkX, sectionCoordinate, chunk.chunkZ);
|
if (chunk instanceof LightingChunk && light.requiresUpdate()) LightingChunk.relightSection(chunk.getInstance(), chunk.chunkX, sectionCoordinate, chunk.chunkZ);
|
||||||
return light.getLevel(coordX, coordY, coordZ);
|
return light.getLevel(coordX, coordY, coordZ);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user