utility.h: Change Buffer's interface to be more compatible with SharedBuffer's interf...
[oweals/minetest.git] / src / materials.cpp
1 #include "materials.h"
2 #include "mapnode.h"
3
4 // NOTE: DEPRECATED
5
6 DiggingPropertiesList * getDiggingPropertiesList(u16 content)
7 {
8         return &content_features(content).digging_properties;
9 }
10
11 DiggingProperties getDiggingProperties(u16 content, const std::string &tool)
12 {
13         DiggingPropertiesList *mprop = getDiggingPropertiesList(content);
14         if(mprop == NULL)
15                 // Not diggable
16                 return DiggingProperties();
17         
18         return mprop->get(tool);
19 }
20