mirror of
https://github.com/minetest/minetest.git
synced 2025-02-18 19:03:46 +01:00
tool and ToolItem apply item aliases
This commit is contained in:
@ -251,6 +251,7 @@ void ItemStack::deSerialize(std::istream &is, IItemDefManager *itemdef)
|
||||
count = 1;
|
||||
// Then read wear
|
||||
fnd.skip_over(" ");
|
||||
name = itemdef->getAlias(name);
|
||||
wear = stoi(trim(fnd.next("")));
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user