mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 08:33:46 +01: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);
|
|
}
|
|
|