diff options
author | Kahrl <kahrl@gmx.net> | 2012-01-22 15:13:00 +0100 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-22 17:31:20 +0200 |
commit | 00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7 (patch) | |
tree | 89addecf71a9ec8c350e16afeae5a9e113adc2e1 /src | |
parent | c241902b4085573477c996bbcdacaed2d293b38c (diff) | |
download | minetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.tar.gz minetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.tar.bz2 minetest-00bc9a8678e8ddbe305f0f2d8dc36334b6733ef7.zip |
tool and ToolItem apply item aliases
Diffstat (limited to 'src')
-rw-r--r-- | src/inventory.cpp | 1 |
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 |