sort issue with JS

This commit is contained in:
CWX
2025-01-19 19:32:12 +00:00
parent 095b25f77f
commit 3e54ef0a8c
@@ -750,8 +750,15 @@ public class BotLootGenerator(
return false;
}
// Increment item count with this bot type
itemSpawnLimits.CurrentLimits[idToCheckFor]++;
// Use tryAdd to see if it exists, and automatically add 1
if (!itemSpawnLimits.CurrentLimits.TryAdd(idToCheckFor, 1))
{
// if it does exist, come in here and increment
// Increment item count with this bot type
itemSpawnLimits.CurrentLimits[idToCheckFor]++;
}
// Check if over limit
if (itemSpawnLimits.CurrentLimits[idToCheckFor] > itemSpawnLimits.GlobalLimits[idToCheckFor])