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:
parent
97c3bc408b
commit
6145a135bd
6 changed files with 37 additions and 24 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue