aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-22 17:58:02 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-22 17:58:02 +0200
commit58ccc68c81b62e3826a7367c38871324ce1eab86 (patch)
tree11645247bf3557692514f1fa46cfa6c8fa5b4065 /src/mapnode.h
parent3de176cc587c4e0601c3c3f5a049e30db6bd2c17 (diff)
downloadhax-minetest-server-58ccc68c81b62e3826a7367c38871324ce1eab86.tar.gz
hax-minetest-server-58ccc68c81b62e3826a7367c38871324ce1eab86.zip
server starting on port 0 on invalid settings
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 20634bf76..ad85d88e8 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -158,10 +158,17 @@ inline bool is_ground_content(u8 m)
m == CONTENT_GRASS ||
m == CONTENT_GRASS_FOOTSTEPS ||
m == CONTENT_MESE ||
- m == CONTENT_MUD
+ m == CONTENT_MUD ||
+ m == CONTENT_COALSTONE
);
}
+inline bool is_mineral(u8 c)
+{
+ return(c == CONTENT_MESE
+ || c == CONTENT_COALSTONE);
+}
+
/*inline bool content_has_faces(u8 c)
{
return (m != CONTENT_IGNORE