Fixed warning unchecked enum value at Chunk.cpp line 841