mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
Added warning to the DynamicChunk protected arrays
This commit is contained in:
parent
89656fbf33
commit
181c2b2b1b
@ -19,6 +19,8 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
||||
public class DynamicChunk extends Chunk {
|
||||
|
||||
// blocks id based on coordinate, see Chunk#getBlockIndex
|
||||
// WARNING: those arrays are NOT thread-safe
|
||||
// and modifying them can cause issue with block data, update, block entity and the cached chunk packet
|
||||
protected final short[] blocksStateId = new short[CHUNK_SIZE_X * CHUNK_SIZE_Y * CHUNK_SIZE_Z];
|
||||
protected final short[] customBlocksId = new short[CHUNK_SIZE_X * CHUNK_SIZE_Y * CHUNK_SIZE_Z];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user