Skip to content

Commit

Permalink
Fix iter
Browse files Browse the repository at this point in the history
  • Loading branch information
Winkarst-cpu committed Jan 14, 2025
1 parent e6c621c commit 893ddf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/logging.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ if (SERVER) then
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), item:GetName(), item:GetID())

if (item.isBag) then
for _, v in item:GetInventory():Iter() do
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), v:GetName(), v:GetID())
for k, _ in item:GetInventory():Iter() do
ix.log.Add(character:GetPlayer(), "inventoryRemove", character:GetName(), k:GetName(), k:GetID())
end
end
end
Expand Down

0 comments on commit 893ddf1

Please sign in to comment.