diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2022-07-16 13:04:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-16 13:04:14 +0200 |
commit | 64a24a4c79ace77ff111f0b555ff1d9d942bf56e (patch) | |
tree | 9ab668e5ac829c7b09e7e9f457de2c0b73a8d903 /src/Defines.h | |
parent | ItemHandler: Fix torch handler not being called (#5433) (diff) | |
download | cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.gz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.bz2 cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.lz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.xz cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.tar.zst cuberite-64a24a4c79ace77ff111f0b555ff1d9d942bf56e.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Defines.h b/src/Defines.h index 82b85e3c4..bbe5d3d3d 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -570,12 +570,8 @@ If a_Inverse is true, the opposite direction is used instead. */ void AddFaceDirection(int & a_BlockX, int & a_BlockY, int & a_BlockZ, eBlockFace a_BlockFace, bool a_bInverse = false); /** Returns the coords of a block that is neighboring the specified position through its specified face. -If a_IsInverse is true, the opposite direction is used instead. */ -inline Vector3i AddFaceDirection(Vector3i a_Pos, eBlockFace a_BlockFace, bool a_bInverse = false) -{ - AddFaceDirection(a_Pos.x, a_Pos.y, a_Pos.z, a_BlockFace, a_bInverse); - return a_Pos; -} +If a_InvertDirection is true, the opposite direction is used instead. */ +Vector3i AddFaceDirection(Vector3i a_Pos, eBlockFace a_BlockFace, bool a_InvertDirection = false); // tolua_end |