Fix error msg if craft replacement w/ full inv (#12820)

This commit is contained in:
Wuzzy 2022-09-29 20:34:51 +02:00 committed by GitHub
parent 9df79a4b2d
commit 5e7ea0664a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -939,7 +939,7 @@ void ICraftAction::apply(InventoryManager *mgr,
do {
PLAYER_TO_SA(player)->item_OnDrop(output_replacement, player,
player->getBasePosition());
if (count >= output_replacement.count) {
if (count <= output_replacement.count) {
errorstream << "Couldn't drop replacement stack " <<
output_replacement.getItemString() << " because drop loop didn't "
"decrease count." << std::endl;