diff options
Diffstat (limited to 'src/mapnode.h')
-rw-r--r-- | src/mapnode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h index 5db337949..61f172eda 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -103,6 +103,9 @@ class NodeMetadata; struct ContentFeatures { #ifndef SERVER + // List of all block textures that have been used (value is dummy) + core::map<std::string, bool> used_texturenames; + /* 0: up 1: down @@ -151,6 +154,10 @@ struct ContentFeatures // If true, node is equivalent to air. Torches are, air is. Water is not. // Is used for example to check whether a mud block can have grass on. bool air_equivalent; + // Whether this content type often contains mineral. + // Used for texture atlas creation. + // Currently only enabled for CONTENT_STONE. + bool often_contains_mineral; // Inventory item string as which the node appears in inventory when dug. // Mineral overrides this. @@ -207,6 +214,7 @@ struct ContentFeatures liquid_type = LIQUID_NONE; wall_mounted = false; air_equivalent = false; + often_contains_mineral = false; dug_item = ""; initial_metadata = NULL; liquid_alternative_flowing = CONTENT_IGNORE; |