From: TeTpaAka Date: Sat, 14 Nov 2015 11:00:52 +0000 (+0100) Subject: Allow craft replacements to use groups X-Git-Tag: 0.4.14~422 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3f8eb5e0d0a7dd30bfd6b805d6c03e0f45182e9a;p=oweals%2Fminetest.git Allow craft replacements to use groups --- 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 >::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;