diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-10-09 14:10:41 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-10-09 14:10:41 +0200 |
commit | f951a2528325af8e1a9ef17f9a765ad68825aec7 (patch) | |
tree | c0fad320c151dec86590c3746dcbaaf5657df11c /src/Defines.h | |
parent | Update apidoc (diff) | |
parent | Updated the Core plugin. (diff) | |
download | cuberite-alwaysTicked.tar cuberite-alwaysTicked.tar.gz cuberite-alwaysTicked.tar.bz2 cuberite-alwaysTicked.tar.lz cuberite-alwaysTicked.tar.xz cuberite-alwaysTicked.tar.zst cuberite-alwaysTicked.zip |
Diffstat (limited to 'src/Defines.h')
-rw-r--r-- | src/Defines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Defines.h b/src/Defines.h index 615beeabd..b9a90cc81 100644 --- a/src/Defines.h +++ b/src/Defines.h @@ -557,7 +557,7 @@ inline void AddFaceDirection(int & a_BlockX, unsigned char & a_BlockY, int & a_B { int Y = a_BlockY; AddFaceDirection(a_BlockX, Y, a_BlockZ, a_BlockFace, a_bInverse); - a_BlockY = Clamp<unsigned char>(static_cast<unsigned char>(Y), 0, 255); + a_BlockY = Clamp<unsigned char>(static_cast<unsigned char>(Y), 0, cChunkDef::Height - 1); } @@ -641,6 +641,7 @@ enum eMessageType mtPrivateMessage, // Player to player messaging identifier mtJoin, // A player has joined the server mtLeave, // A player has left the server + mtMaxPlusOne, // The first invalid type, used for checking on LuaAPI boundaries // Common aliases: mtFail = mtFailure, |