mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-21 23:51:36 +01:00
Potentially fix lighting
This commit is contained in:
parent
a641c2415a
commit
f0a73f25eb
@ -277,11 +277,6 @@ public abstract class Chunk implements BlockGetter, BlockSetter, Viewable, Ticka
|
|||||||
updateLightPacket.chunkX = getChunkX();
|
updateLightPacket.chunkX = getChunkX();
|
||||||
updateLightPacket.chunkZ = getChunkZ();
|
updateLightPacket.chunkZ = getChunkZ();
|
||||||
|
|
||||||
updateLightPacket.skyLightMask = new long[]{skyMask};
|
|
||||||
updateLightPacket.blockLightMask = new long[]{blockMask};
|
|
||||||
updateLightPacket.emptySkyLightMask = new long[]{emptySkyMask};
|
|
||||||
updateLightPacket.emptyBlockLightMask = new long[]{emptyBlockMask};
|
|
||||||
|
|
||||||
updateLightPacket.skyLight = skyLights;
|
updateLightPacket.skyLight = skyLights;
|
||||||
updateLightPacket.blockLight = blockLights;
|
updateLightPacket.blockLight = blockLights;
|
||||||
|
|
||||||
@ -312,6 +307,12 @@ public abstract class Chunk implements BlockGetter, BlockSetter, Viewable, Ticka
|
|||||||
emptyBlockMask |= 1L << index;
|
emptyBlockMask |= 1L << index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateLightPacket.skyLightMask = new long[]{skyMask};
|
||||||
|
updateLightPacket.blockLightMask = new long[]{blockMask};
|
||||||
|
updateLightPacket.emptySkyLightMask = new long[]{emptySkyMask};
|
||||||
|
updateLightPacket.emptyBlockLightMask = new long[]{emptyBlockMask};
|
||||||
|
|
||||||
return updateLightPacket;
|
return updateLightPacket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user