summaryrefslogtreecommitdiffstats
path: root/src/ChunkDef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChunkDef.h')
-rw-r--r--src/ChunkDef.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ChunkDef.h b/src/ChunkDef.h
index 12036cdbe..2f619f83b 100644
--- a/src/ChunkDef.h
+++ b/src/ChunkDef.h
@@ -170,6 +170,11 @@ public:
return ((a_Height >= 0) && (a_Height < Height));
}
+ inline static bool IsValidHeight(Vector3i a_BlockPosition)
+ {
+ return IsValidHeight(a_BlockPosition.y);
+ }
+
/** Validates a width-coordinate. Returns false if width-coordiante is out of width bounds */
inline static bool IsValidWidth(int a_Width)