From c98a2d9acfdf4350479b925f216a1b1fb49688f6 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 26 Aug 2020 14:08:37 +0200 Subject: Changed tree-growing functions in cWorld to use Vector3i coords. --- src/Blocks/BlockSapling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Blocks/BlockSapling.h') diff --git a/src/Blocks/BlockSapling.h b/src/Blocks/BlockSapling.h index 86397d806..e52ae5fc7 100644 --- a/src/Blocks/BlockSapling.h +++ b/src/Blocks/BlockSapling.h @@ -62,7 +62,7 @@ public: if (((Meta & 0x08) != 0) && random.RandBool(0.45) && CanGrowAt(a_Chunk, a_RelPos.x, a_RelPos.y, a_RelPos.z, Meta)) { auto WorldPos = a_Chunk.RelativeToAbsolute(a_RelPos); - a_Chunk.GetWorld()->GrowTree(WorldPos.x, WorldPos.y, WorldPos.z); + a_Chunk.GetWorld()->GrowTree(WorldPos); } // Only move to the next growth stage if we haven't gone there yet else if (((Meta & 0x08) == 0) && random.RandBool(0.45)) @@ -211,7 +211,7 @@ public: } // The sapling is grown, now it becomes a tree: - a_Chunk.GetWorld()->GrowTreeFromSapling(a_Chunk.RelativeToAbsolute(a_RelPos), blockMeta); + a_Chunk.GetWorld()->GrowTreeFromSapling(a_Chunk.RelativeToAbsolute(a_RelPos)); return res + 1; } -- cgit v1.2.3