]> git.lizzy.rs Git - minetest.git/blobdiff - src/craftdef.cpp
Mgvalleys: use standard caves
[minetest.git] / src / craftdef.cpp
index a39bfb37d417da5942a673a352db3482e00a8d1e..67c3ae62ac39205be2f37abc7f15457c1aba58d2 100644 (file)
@@ -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;