summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-01-22 15:13:00 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-01-22 17:31:20 +0200
commit00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7 (patch)
tree89addecf71a9ec8c350e16afeae5a9e113adc2e1 /src/inventory.cpp
parentc241902b4085573477c996bbcdacaed2d293b38c (diff)
downloadminetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.tar.gz
minetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.tar.bz2
minetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.zip
tool and ToolItem apply item aliases
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 66101b831..056cf552d 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