mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix missing check for 0 in craft replacements
This commit is contained in:
parent
7b171ea2be
commit
87b9cdab07
@ -235,8 +235,8 @@ static void craftDecrementOrReplaceInput(CraftInput &input,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// No replacement was found, simply decrement count to zero
|
// No replacement was found, simply decrement count by one
|
||||||
if (!found_replacement)
|
if (!found_replacement && it->count > 0)
|
||||||
it->remove(1);
|
it->remove(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user