aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeTpaAka <TeTpaAka@users.noreply.github.com>2015-11-14 12:00:52 +0100
committerest31 <MTest31@outlook.com>2015-11-15 13:41:38 +0100
commit3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a (patch)
tree6b45a1b52c40532617ced56afd32952d373ef89d
parentc19b43d4f79a3c4181a2abcd1b121f7bd83539ee (diff)
downloadminetest-3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a.tar.gz
minetest-3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a.tar.bz2
minetest-3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a.zip
Allow craft replacements to use groups
-rw-r--r--src/craftdef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp
index a39bfb37d..67c3ae62a 100644
--- a/src/craftdef.cpp
+++ b/src/craftdef.cpp
@@ -214,7 +214,7 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
for (std::vector<std::pair<std::string, std::string> >::iterator
j = pairs.begin();
j != pairs.end(); ++j) {
- if (item.name == craftGetItemName(j->first, gamedef)) {
+ if (inputItemMatchesRecipe(item.name, j->first, gamedef->idef())) {
if (item.count == 1) {
item.deSerialize(j->second, gamedef->idef());
found_replacement = true;