No more warnings

This commit is contained in:
Cooldude2606 committed 2024-11-19 22:32:46 +00:00
1 parent 32a8ba8f3a
commit 3145f7e904
43 files changed
+215 -177

No files matched your search

@@ -26,7 +26,7 @@ end
for _, inventory in ipairs(config.inventories) do
if #inventory.items > 0 then
Event.add(inventory.event, function(event)
local player = game.get_player(event.player_index)
local player = game.players[event.player_index]
if player and player.valid then
check_items(player, inventory.inventory)
end