From 365cbc6e1cea96741e26c9ce912b003f8fd2c62c Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 29 Sep 2019 14:59:24 +0200 Subject: Refactored more of Entities and BlockEntities to use Vector3. (#4403) --- src/Chunk.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Chunk.h') diff --git a/src/Chunk.h b/src/Chunk.h index b1ea8be5e..13ef1a5a9 100644 --- a/src/Chunk.h +++ b/src/Chunk.h @@ -479,6 +479,14 @@ public: return cChunkClientHandles(m_LoadedByClient); } + /** Converts the coord relative to this chunk into an absolute coord. + Doesn't check relative coord validity. */ + Vector3i RelativeToAbsolute(Vector3i a_RelBlockPosition) + { + return cChunkDef::RelativeToAbsolute(a_RelBlockPosition, m_PosX, m_PosZ); + } + + private: friend class cChunkMap; -- cgit v1.2.3