Closed Skwizzy closed 3 months ago
I delivered a change adding some extra protection to prevent this exception 7121065
Reopening as Solarint mentioned this exception was seen again in 1.3.0
Was able to recreate finally. During the second raid, after bot 90-92 spawns this exception is seen for me. I think this has to do with the fact that when a bot dies while looting, its BotOwner ref is not being removed from the loot cache.
Adding a patch for the BotOwner.dispose method to cleanup the cache when a bot dies
Reported by MusicManiac and RPRaptor
Logs are filled with the following exception:
Not exactly sure how this can happen. When a bot detects loot to find, it is added to the active loot map with the item id as the key and the value is the BotOwner that detected the item. In this instance, one of the BotOwners in this map does not have its
name
property which usually means the bot has despawned. Adding some extra protection during loot finding to make sure the BotOwner is defined before adding something to the cache