diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-11 18:23:21 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-03-11 18:23:21 +0100 |
commit | e213e5f9fcb3681a5f383546e17b9800d4a4804a (patch) | |
tree | b4bd964c4966ed1103f859e58b97f637a73cc8cc /src/BlockArea.h | |
parent | Using ```const Vector3i &``` (diff) | |
download | cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar.gz cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar.bz2 cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar.lz cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar.xz cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.tar.zst cuberite-e213e5f9fcb3681a5f383546e17b9800d4a4804a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockArea.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BlockArea.h b/src/BlockArea.h index 75b8db3a6..76424d02f 100644 --- a/src/BlockArea.h +++ b/src/BlockArea.h @@ -221,7 +221,7 @@ public: NIBBLETYPE GetBlockLight (int a_BlockX, int a_BlockY, int a_BlockZ) const; NIBBLETYPE GetRelBlockSkyLight(int a_RelX, int a_RelY, int a_RelZ) const; NIBBLETYPE GetBlockSkyLight (int a_BlockX, int a_BlockY, int a_BlockZ) const; - const Vector3i & GetOffset (void) const {return m_Offset;} + const Vector3i & GetOffset (void) const {return m_WEOffset;} void SetBlockTypeMeta (int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); void SetRelBlockTypeMeta(int a_RelX, int a_RelY, int a_RelZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta); @@ -302,7 +302,8 @@ protected: int m_SizeY; int m_SizeZ; - Vector3i m_Offset; + // Used for schematics that are created by the WorldEdit plugin. The offset is used for player-relative pasting. + Vector3i m_WEOffset; BLOCKTYPE * m_BlockTypes; NIBBLETYPE * m_BlockMetas; // Each meta is stored as a separate byte for faster access |