summaryrefslogtreecommitdiff
path: root/src/materials.cpp
blob: e3a24b9e34f8d16d58b5da7396e70ceabf3472cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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);
}