diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-07-28 18:59:21 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2017-07-28 18:59:21 +0200 |
commit | 5402b214b31af60bc96cd4e47e9211715c3e99f5 (patch) | |
tree | 3d8b0fe5cc7a3f8c63e365afa9f118d755780ea2 /src/ChunkDef.h | |
parent | Tentative fix for player-limit race condition (#3862) (diff) | |
download | cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar.gz cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar.bz2 cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar.lz cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar.xz cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.tar.zst cuberite-5402b214b31af60bc96cd4e47e9211715c3e99f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/ChunkDef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ChunkDef.h b/src/ChunkDef.h index 41ba44417..bf0f20514 100644 --- a/src/ChunkDef.h +++ b/src/ChunkDef.h @@ -402,6 +402,9 @@ struct sSetBlock /** Returns the absolute Z coord of the stored block. */ int GetZ(void) const { return m_RelZ + cChunkDef::Width * m_ChunkZ; } + + /** Returns the absolute position of the stored block. */ + Vector3i GetPos(void) const { return Vector3i(GetX(), GetY(), GetZ()); } }; typedef std::list<sSetBlock> sSetBlockList; |