1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)

This commit is contained in:
Perttu Ahola 2011-12-04 02:12:45 +02:00
parent 97c3bc408b
commit 6145a135bd
6 changed files with 37 additions and 24 deletions

View file

@ -331,12 +331,7 @@ private:
class ToolItem : public InventoryItem
{
public:
ToolItem(IGameDef *gamedef, std::string toolname, u16 wear):
InventoryItem(gamedef, 1)
{
m_toolname = toolname;
m_wear = wear;
}
ToolItem(IGameDef *gamedef, std::string toolname, u16 wear);
/*
Implementation interface
*/