entries/tickable map shall be empty by default

Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
TheMode 2021-11-06 10:32:57 +01:00
parent 86d9c20150
commit 83e5addef0

View File

@ -35,8 +35,8 @@ public class DynamicChunk extends Chunk {
protected final Int2ObjectOpenHashMap<Section> sectionMap = new Int2ObjectOpenHashMap<>(); protected final Int2ObjectOpenHashMap<Section> sectionMap = new Int2ObjectOpenHashMap<>();
// Key = ChunkUtils#getBlockIndex // Key = ChunkUtils#getBlockIndex
protected final Int2ObjectOpenHashMap<Block> entries = new Int2ObjectOpenHashMap<>(); protected final Int2ObjectOpenHashMap<Block> entries = new Int2ObjectOpenHashMap<>(0);
protected final Int2ObjectOpenHashMap<Block> tickableMap = new Int2ObjectOpenHashMap<>(); protected final Int2ObjectOpenHashMap<Block> tickableMap = new Int2ObjectOpenHashMap<>(0);
private long lastChange; private long lastChange;
private final CachedPacket chunkCache = new CachedPacket(this::createChunkPacket); private final CachedPacket chunkCache = new CachedPacket(this::createChunkPacket);