mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
Make ToolItem and MaterialItem to convert names by aliases at creation time too (necessary for eg. crafting)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user