summaryrefslogtreecommitdiffstats
path: root/source/Defines.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-12 19:26:00 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-12 19:26:00 +0200
commitff2225dee05bf62e25ce52a6d9b50198d8d31e6b (patch)
treeebb8931b565f196f984ed7e485e016023c862171 /source/Defines.h
parentFixed some bugs within the squirrel plugin system. (diff)
downloadcuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar.gz
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar.bz2
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar.lz
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar.xz
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.tar.zst
cuberite-ff2225dee05bf62e25ce52a6d9b50198d8d31e6b.zip
Diffstat (limited to 'source/Defines.h')
-rw-r--r--source/Defines.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Defines.h b/source/Defines.h
index d0279875f..e0880ad24 100644
--- a/source/Defines.h
+++ b/source/Defines.h
@@ -72,6 +72,12 @@ inline bool IsBlockLava(char a_BlockID)
}
+inline bool IsBlockLiquid(char a_BlockID)
+{
+ return IsBlockWater(a_BlockID) || IsBlockLava(a_BlockID);
+}
+
+