aboutsummaryrefslogtreecommitdiff
path: root/src/materials.cpp
blob: 24f30072435915a6f701d4404b1b703b40415371 (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(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);
}