summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-11-10 23:06:29 +0100
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-11-23 03:17:32 +0100
commitb87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc (patch)
tree543ddb9986d9062f964b8f8d0d1d6dd21bdbfcab /src/Blocks
parentMerge pull request #2678 from cuberite/ln (diff)
downloadcuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.gz
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.bz2
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.lz
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.xz
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.tar.zst
cuberite-b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc.zip
Diffstat (limited to 'src/Blocks')
-rw-r--r--src/Blocks/BlockDirt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index d93bdd22d..813ff5b24 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -77,7 +77,7 @@ public:
BLOCKTYPE DestBlock;
NIBBLETYPE DestMeta;
- if ((a_RelY + OfsY < 0) || (a_RelY + OfsY >= cChunkDef::Height - 1))
+ if (!cChunkDef::IsValidHeight(a_RelY + OfsY))
{
// Y Coord out of range
continue;