From: Kahrl Date: Sun, 22 Jan 2012 14:13:00 +0000 (+0100) Subject: tool and ToolItem apply item aliases X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7;p=zefram%2Fminetest%2Fminetest_engine.git tool and ToolItem apply item aliases --- diff --git a/src/inventory.cpp b/src/inventory.cpp index 66101b83..056cf552 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -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