aboutsummaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index ea50d4281..f90caff8a 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -478,6 +478,12 @@ struct ContentFeatures
return (liquid_alternative_flowing_id == f.liquid_alternative_flowing_id);
}
+ bool lightingEquivalent(const ContentFeatures &other) const {
+ return light_propagates == other.light_propagates
+ && sunlight_propagates == other.sunlight_propagates
+ && light_source == other.light_source;
+ }
+
int getGroup(const std::string &group) const
{
return itemgroup_get(groups, group);