summaryrefslogtreecommitdiffstats
path: root/src/Chunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Chunk.h')
-rw-r--r--src/Chunk.h8
1 files changed, 8 insertions, 0 deletions
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;