From b87e0b6b1519cb26a28aa87b59a20c8e27c6b9bc Mon Sep 17 00:00:00 2001 From: Julian Laubstein Date: Tue, 10 Nov 2015 23:06:29 +0100 Subject: Adjusted height validation using cChunkDef::IsValidHeight() --- src/Blocks/BlockDirt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Blocks/BlockDirt.h') 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; -- cgit v1.2.3