tool and ToolItem apply item aliases
This commit is contained in:
parent
c241902b40
commit
00bc9a8678
|
@ -251,6 +251,7 @@ void ItemStack::deSerialize(std::istream &is, IItemDefManager *itemdef)
|
||||||
count = 1;
|
count = 1;
|
||||||
// Then read wear
|
// Then read wear
|
||||||
fnd.skip_over(" ");
|
fnd.skip_over(" ");
|
||||||
|
name = itemdef->getAlias(name);
|
||||||
wear = stoi(trim(fnd.next("")));
|
wear = stoi(trim(fnd.next("")));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue