summaryrefslogtreecommitdiffstats
path: root/src/Generating/Trees.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-10 17:59:33 +0200
committerMattes D <github@xoft.cz>2016-06-10 17:59:33 +0200
commitce30e3f6661d5a386b2b12bae73980ec76928d47 (patch)
tree2c332eef23ae5eb816d08786fb2f87535b289ca5 /src/Generating/Trees.cpp
parentMerge pull request #3225 from cuberite/FixAutoAPI (diff)
downloadcuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.gz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.bz2
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.lz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.xz
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.tar.zst
cuberite-ce30e3f6661d5a386b2b12bae73980ec76928d47.zip
Diffstat (limited to 'src/Generating/Trees.cpp')
-rw-r--r--src/Generating/Trees.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Generating/Trees.cpp b/src/Generating/Trees.cpp
index 9cde11877..c185f54d9 100644
--- a/src/Generating/Trees.cpp
+++ b/src/Generating/Trees.cpp
@@ -445,7 +445,7 @@ void GetLargeAppleTreeBranch(int a_BlockX, int a_BlockY, int a_BlockZ, int a_Bra
return;
}
Direction -= a_Direction;
- Direction.clamp(-1.0, 1.0);
+ Direction.Clamp(-1.0, 1.0);
a_LogBlocks.push_back(sSetBlock(FloorC(CurrentPos.x), FloorC(CurrentPos.y), FloorC(CurrentPos.z), E_BLOCK_LOG, GetLogMetaFromDirection(E_META_LOG_APPLE, Direction)));
}
}
@@ -456,7 +456,7 @@ void GetLargeAppleTreeBranch(int a_BlockX, int a_BlockY, int a_BlockZ, int a_Bra
NIBBLETYPE GetLogMetaFromDirection(NIBBLETYPE a_BlockMeta, Vector3d a_Direction)
{
- a_Direction.abs();
+ a_Direction.Abs();
if ((a_Direction.y > a_Direction.x) && (a_Direction.y > a_Direction.z))
{