From 5ea7675eca4fe50feed7fc4b871075f8c937d8b1 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Tue, 19 Apr 2022 20:30:12 +0200 Subject: Updated protocol functions to Vector3x also added support in included functions --- src/ChunkDef.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ChunkDef.h') 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) -- cgit v1.2.3