summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-04-23 09:22:25 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-04-23 09:22:25 +0200
commit611cb8cb4e17c55b1dc913837268bf9dd423df75 (patch)
tree1d4f49943813a5309ef081ae8f9e696a388ba8a4 /src/Chunk.cpp
parentUpdated readme to inform that clang 3.4 is minimum required version. (#3158) (diff)
parentOut of world blocks are now always considered air blocks (diff)
downloadcuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar.gz
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar.bz2
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar.lz
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar.xz
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.tar.zst
cuberite-611cb8cb4e17c55b1dc913837268bf9dd423df75.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp10
1 files changed, 0 insertions, 10 deletions
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);
}