diff options
Diffstat (limited to 'src/Blocks/BlockCactus.h')
-rw-r--r-- | src/Blocks/BlockCactus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockCactus.h b/src/Blocks/BlockCactus.h index 4147ad473..7a9088178 100644 --- a/src/Blocks/BlockCactus.h +++ b/src/Blocks/BlockCactus.h @@ -65,9 +65,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->GrowCactus(a_BlockX, a_BlockY, a_BlockZ, 1); + a_Chunk.GetWorld()->GrowCactus(a_RelX + a_Chunk.GetPosX() * cChunkDef::Width, a_RelY, a_RelZ + a_Chunk.GetPosZ() * cChunkDef::Width, 1); } |