diff options
author | madmaxoft <github@xoft.cz> | 2013-11-30 15:58:27 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-30 15:58:27 +0100 |
commit | c70c2fa42fa9336958e7b66a8813d075963f3463 (patch) | |
tree | 52ef965eb191c81aca95fd56146d10478496d645 /src/Blocks/BlockSugarcane.h | |
parent | Added IsBiomeNoDownfall() function. (diff) | |
download | cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar.gz cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar.bz2 cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar.lz cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar.xz cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.tar.zst cuberite-c70c2fa42fa9336958e7b66a8813d075963f3463.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockSugarcane.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockSugarcane.h b/src/Blocks/BlockSugarcane.h index 28a60df80..02d7a2fe4 100644 --- a/src/Blocks/BlockSugarcane.h +++ b/src/Blocks/BlockSugarcane.h @@ -73,9 +73,9 @@ public: } - void OnUpdate(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override + void OnUpdate(cChunk & a_Chunk, int a_RelX, int a_RelY, int a_RelZ) override { - a_World->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, 1); + a_Chunk.GetWorld()->GrowSugarcane(a_RelX + a_Chunk.GetPosX() * cChunkDef::Width, a_RelY, a_RelZ + a_Chunk.GetPosZ() * cChunkDef::Width, 1); } |