diff options
author | Mattes D <github@xoft.cz> | 2017-02-05 16:00:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-05 16:00:38 +0100 |
commit | cbff1378fd78b6eaa59bad21759c8b89f1dab341 (patch) | |
tree | d992f37f36a15ff110d9d3e37df2426407522f54 /src/Blocks/BlockChest.h | |
parent | Merge pull request #3565 from cuberite/luacheck (diff) | |
download | cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.gz cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.bz2 cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.lz cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.xz cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.tar.zst cuberite-cbff1378fd78b6eaa59bad21759c8b89f1dab341.zip |
Diffstat (limited to 'src/Blocks/BlockChest.h')
-rw-r--r-- | src/Blocks/BlockChest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockChest.h b/src/Blocks/BlockChest.h index 2c34beeeb..f8d69e5c6 100644 --- a/src/Blocks/BlockChest.h +++ b/src/Blocks/BlockChest.h @@ -37,7 +37,7 @@ public: // Check if this forms a doublechest, if so, need to adjust the meta: cBlockArea Area; - if (!Area.Read(&a_ChunkInterface, a_BlockX - 1, a_BlockX + 1, a_BlockY, a_BlockY, a_BlockZ - 1, a_BlockZ + 1)) + if (!Area.Read(a_ChunkInterface, a_BlockX - 1, a_BlockX + 1, a_BlockY, a_BlockY, a_BlockZ - 1, a_BlockZ + 1)) { return false; } @@ -75,7 +75,7 @@ public: virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_BlockX, int a_BlockY, int a_BlockZ) { cBlockArea Area; - if (!Area.Read(&a_ChunkInterface, a_BlockX - 2, a_BlockX + 2, a_BlockY, a_BlockY, a_BlockZ - 2, a_BlockZ + 2)) + if (!Area.Read(a_ChunkInterface, a_BlockX - 2, a_BlockX + 2, a_BlockY, a_BlockY, a_BlockZ - 2, a_BlockZ + 2)) { // Cannot read the surroundings, probably at the edge of loaded chunks. Disallow. return false; |