aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
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