1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-16 22:35:07 -05:00
minetest/src/materials.cpp

21 lines
430 B
C++

#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);
}