diff options
Diffstat (limited to '')
-rw-r--r-- | src/Chunk.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp index dd5944313..161a42512 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -1293,8 +1293,7 @@ void cChunk::SetBlock(Vector3i a_RelPos, BLOCKTYPE a_BlockType, NIBBLETYPE a_Blo void cChunk::FastSetBlock(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, BLOCKTYPE a_BlockMeta) { - ASSERT(!((a_RelX < 0) || (a_RelX >= cChunkDef::Width) || (a_RelY < 0) || (a_RelY >= cChunkDef::Height) || (a_RelZ < 0) || (a_RelZ >= cChunkDef::Width))); - + ASSERT(cChunkDef::IsValidRelPos({ a_RelX, a_RelY, a_RelZ })); ASSERT(IsValid()); const BLOCKTYPE OldBlockType = GetBlock(a_RelX, a_RelY, a_RelZ); |