1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

Fix missing check for 0 in craft replacements

This commit is contained in:
TeTpaAka 2015-07-04 11:28:09 +02:00 committed by est31
parent 7b171ea2be
commit 87b9cdab07

View File

@ -235,8 +235,8 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
}
}
}
// No replacement was found, simply decrement count to zero
if (!found_replacement)
// No replacement was found, simply decrement count by one
if (!found_replacement && it->count > 0)
it->remove(1);
}
}