projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c241902
)
tool and ToolItem apply item aliases
author
Kahrl
<kahrl@gmx.net>
Sun, 22 Jan 2012 14:13:00 +0000
(15:13 +0100)
committer
Perttu Ahola
<celeron55@gmail.com>
Sun, 22 Jan 2012 15:31:20 +0000
(17:31 +0200)
src/inventory.cpp
patch
|
blob
|
history
diff --git
a/src/inventory.cpp
b/src/inventory.cpp
index 66101b831b3de0c4b19edf288beb8e2ef2a2c265..056cf552d681da8c0059e9fc83024943a43049d4 100644
(file)
--- 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