summaryrefslogtreecommitdiffstats
path: root/source/Defines.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 22:36:24 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-22 22:36:24 +0100
commit24efa6f8645c2f310997c212907fb4e591d0afec (patch)
treeff6d43fb6a9af7838b0dc41908f895f71d9aef5c /source/Defines.h
parentFixes: (diff)
downloadcuberite-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 '')
-rw-r--r--source/Defines.h7
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 )