diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-22 22:36:24 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-22 22:36:24 +0100 |
commit | 24efa6f8645c2f310997c212907fb4e591d0afec (patch) | |
tree | ff6d43fb6a9af7838b0dc41908f895f71d9aef5c /source/Defines.h | |
parent | Fixes: (diff) | |
download | cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.gz cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.bz2 cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.lz cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.xz cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.tar.zst cuberite-24efa6f8645c2f310997c212907fb4e591d0afec.zip |
Diffstat (limited to 'source/Defines.h')
-rw-r--r-- | source/Defines.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/Defines.h b/source/Defines.h index 6d86da825..838eb1340 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -46,11 +46,16 @@ inline bool IsValidItem( int a_ItemID ) //tolua_export return IsValidBlock( a_ItemID );
} //tolua_export
-inline bool IsBlockWater (char a_BlockID)
+inline bool IsBlockWater(char a_BlockID)
{
return (a_BlockID == E_BLOCK_WATER || a_BlockID == E_BLOCK_STATIONARY_WATER);
}
+inline bool IsBlockLava(char a_BlockID)
+{
+ return (a_BlockID == E_BLOCK_LAVA || a_BlockID == E_BLOCK_STATIONARY_LAVA);
+}
+
inline void AddDirection( int & a_X, char & a_Y, int & a_Z, char a_Direction, bool a_bInverse = false ) //tolua_export
{//tolua_export
if( !a_bInverse )
|