projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19b43d
)
Allow craft replacements to use groups
author
TeTpaAka
<TeTpaAka@users.noreply.github.com>
Sat, 14 Nov 2015 11:00:52 +0000
(12:00 +0100)
committer
est31
<MTest31@outlook.com>
Sun, 15 Nov 2015 12:41:38 +0000
(13:41 +0100)
src/craftdef.cpp
patch
|
blob
|
history
diff --git
a/src/craftdef.cpp
b/src/craftdef.cpp
index a39bfb37d417da5942a673a352db3482e00a8d1e..67c3ae62ac39205be2f37abc7f15457c1aba58d2 100644
(file)
--- 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 (i
tem.name == craftGetItemName(j->first, gamedef
)) {
+ if (i
nputItemMatchesRecipe(item.name, j->first, gamedef->idef()
)) {
if (item.count == 1) {
item.deSerialize(j->second, gamedef->idef());
found_replacement = true;