point 1 for crowley ... 20 for newb

This commit is contained in:
gononono64 committed 2025-02-26 01:18:49 -06:00
1 parent b03e83933f
commit 4c86b8074b
1 file changed
+2
+2
View File
@@ -63,8 +63,10 @@ end
Table.FindFirstUnoccupiedSlot = function(tbl) Table.FindFirstUnoccupiedSlot = function(tbl)
local occupiedSlots = {} local occupiedSlots = {}
for _, v in pairs(tbl) do for _, v in pairs(tbl) do
if v.slot then
occupiedSlots[v.slot] = true occupiedSlots[v.slot] = true
end end
end
for i = 1, BridgeServerConfig.MaxInventorySlots do for i = 1, BridgeServerConfig.MaxInventorySlots do
if not occupiedSlots[i] then if not occupiedSlots[i] then
return i return i