diff options
Diffstat (limited to 'src/Blocks/BlockSapling.h')
-rw-r--r-- | src/Blocks/BlockSapling.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |