summaryrefslogtreecommitdiffstats
path: root/src/Defines.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-10-09 14:10:41 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-10-09 14:10:41 +0200
commitf951a2528325af8e1a9ef17f9a765ad68825aec7 (patch)
treec0fad320c151dec86590c3746dcbaaf5657df11c /src/Defines.h
parentUpdate apidoc (diff)
parentUpdated the Core plugin. (diff)
downloadcuberite-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.h3
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,