mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-29 19:41:47 +01:00
Set empty bitset
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
34030e3a8f
commit
fe02cf73cf
@ -94,7 +94,7 @@ public class AnvilLoader implements IChunkLoader {
|
||||
HashMap<String, Biome> biomeCache = new HashMap<>();
|
||||
|
||||
for (ChunkSection section : fileChunk.getSections().values()) {
|
||||
if(!section.getEmpty()) continue;
|
||||
if(section.getEmpty()) continue;
|
||||
for (int y = 0; y < Chunk.CHUNK_SECTION_SIZE; y++) {
|
||||
for (int z = 0; z < Chunk.CHUNK_SIZE_Z; z++) {
|
||||
for (int x = 0; x < Chunk.CHUNK_SIZE_X; x++) {
|
||||
|
@ -14,7 +14,6 @@ import net.minestom.server.network.packet.server.play.ChunkDataPacket;
|
||||
import net.minestom.server.network.packet.server.play.UpdateLightPacket;
|
||||
import net.minestom.server.network.packet.server.play.data.ChunkData;
|
||||
import net.minestom.server.network.packet.server.play.data.LightData;
|
||||
import net.minestom.server.utils.ArrayUtils;
|
||||
import net.minestom.server.utils.MathUtils;
|
||||
import net.minestom.server.utils.Utils;
|
||||
import net.minestom.server.utils.binary.BinaryWriter;
|
||||
@ -219,10 +218,14 @@ public class DynamicChunk extends Chunk {
|
||||
if (skyLight.length != 0) {
|
||||
skyLights.add(skyLight);
|
||||
skyMask.set(index);
|
||||
} else {
|
||||
emptySkyMask.set(index);
|
||||
}
|
||||
if (blockLight.length != 0) {
|
||||
blockLights.add(blockLight);
|
||||
blockMask.set(index);
|
||||
} else {
|
||||
emptyBlockMask.set(index);
|
||||
}
|
||||
}
|
||||
return new LightData(true,
|
||||
|
Loading…
Reference in New Issue
Block a user