diff options
author | Mattes D <github@xoft.cz> | 2020-08-26 14:08:37 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-27 18:32:48 +0200 |
commit | c98a2d9acfdf4350479b925f216a1b1fb49688f6 (patch) | |
tree | 54b74265f680dae0031cf2da4b83068d7cc3dbbd /src/Blocks | |
parent | Added a "reloadweb" command for reloading web admin config. (diff) | |
download | cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar.gz cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar.bz2 cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar.lz cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar.xz cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.tar.zst cuberite-c98a2d9acfdf4350479b925f216a1b1fb49688f6.zip |
Diffstat (limited to '')
-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; } |