From 77bf00a5994cc4cbbca57d70fb8e761a2ea2757f Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Thu, 24 Mar 2016 18:18:14 +0200 Subject: Out of world blocks are now always considered air blocks --- src/Chunk.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/Chunk.cpp') diff --git a/src/Chunk.cpp b/src/Chunk.cpp index ae3d218d5..ff0841440 100644 --- a/src/Chunk.cpp +++ b/src/Chunk.cpp @@ -2594,16 +2594,6 @@ bool cChunk::GetSignLines(int a_BlockX, int a_BlockY, int a_BlockZ, AString & a_ BLOCKTYPE cChunk::GetBlock(int a_RelX, int a_RelY, int a_RelZ) const { - if ( - (a_RelX < 0) || (a_RelX >= Width) || - (a_RelY < 0) || (a_RelY >= Height) || - (a_RelZ < 0) || (a_RelZ >= Width) - ) - { - ASSERT(!"GetBlock(x, y, z) out of bounds!"); - return 0; // Clip - } - return m_ChunkData.GetBlock(a_RelX, a_RelY, a_RelZ); } -- cgit v1.2.3