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/BlockFarmland.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/BlockFarmland.h')
-rw-r--r-- | src/Blocks/BlockFarmland.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Blocks/BlockFarmland.h b/src/Blocks/BlockFarmland.h index 412eb1d2c..ddbd79335 100644 --- a/src/Blocks/BlockFarmland.h +++ b/src/Blocks/BlockFarmland.h @@ -109,7 +109,7 @@ public: cBlockArea Area; int BlockX = a_RelX + a_Chunk.GetPosX() * cChunkDef::Width; int BlockZ = a_RelZ + a_Chunk.GetPosZ() * cChunkDef::Width; - if (!Area.Read(a_Chunk.GetWorld(), BlockX - 4, BlockX + 4, a_RelY, a_RelY + 1, BlockZ - 4, BlockZ + 4)) + if (!Area.Read(*a_Chunk.GetWorld(), BlockX - 4, BlockX + 4, a_RelY, a_RelY + 1, BlockZ - 4, BlockZ + 4)) { // Too close to the world edge, cannot check surroundings return false; |