1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #include "materials.h" #include "mapnode.h" // NOTE: DEPRECATED DiggingPropertiesList * getDiggingPropertiesList(u8 content) { return &content_features(content).digging_properties; } DiggingProperties getDiggingProperties(u8 content, const std::string &tool) { DiggingPropertiesList *mprop = getDiggingPropertiesList(content); if(mprop == NULL) // Not diggable return DiggingProperties(); return mprop->get(tool); }