From 893ddf11393fa06a08c9641ba8870681648dd489 Mon Sep 17 00:00:00 2001 From: Winkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com> Date: Tue, 14 Jan 2025 18:17:25 +0300 Subject: [PATCH] Fix iter --- plugins/logging.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/logging.lua b/plugins/logging.lua index 043057fb..6132b542 100644 --- a/plugins/logging.lua +++ b/plugins/logging.lua @@ -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