mirror of
https://github.com/moparisthebest/minetest
synced 2024-11-05 08:55:01 -05:00
21 lines
432 B
C++
21 lines
432 B
C++
#include "materials.h"
|
|
#include "mapnode.h"
|
|
|
|
// NOTE: DEPRECATED
|
|
|
|
DiggingPropertiesList * getDiggingPropertiesList(u16 content)
|
|
{
|
|
return &content_features(content).digging_properties;
|
|
}
|
|
|
|
DiggingProperties getDiggingProperties(u16 content, const std::string &tool)
|
|
{
|
|
DiggingPropertiesList *mprop = getDiggingPropertiesList(content);
|
|
if(mprop == NULL)
|
|
// Not diggable
|
|
return DiggingProperties();
|
|
|
|
return mprop->get(tool);
|
|
}
|
|
|