Improve canPlaceItemInInventory() logging

Increase attempts to fit into container to 3 from 2
This commit is contained in:
Dev 2024-02-09 15:18:49 +00:00
parent 5a8317b8a1
commit 4a8c12dc59
2 changed files with 4 additions and 1 deletions

View File

@ -834,7 +834,7 @@
"enabled": true, "enabled": true,
"ignoreMaps": ["base", "develop", "hideout", "privatearea", "suburbs", "terminal", "town"] "ignoreMaps": ["base", "develop", "hideout", "privatearea", "suburbs", "terminal", "town"]
}, },
"fitLootIntoContainerAttempts": 2, "fitLootIntoContainerAttempts": 3,
"addOpenZonesToAllMaps": true, "addOpenZonesToAllMaps": true,
"addCustomBotWavesToMaps": true, "addCustomBotWavesToMaps": true,
"enableBotTypeLimits": true, "enableBotTypeLimits": true,

View File

@ -276,6 +276,9 @@ export class InventoryHelper
} }
catch (err) catch (err)
{ {
const errorText = (typeof err === "string") ? ` -> ${err}` : "";
this.logger.error(`Unable to fit item into inventory: ${errorText}`);
return false; return false;
} }