Fixed auto fill amounts not working

This commit is contained in:
Cooldude2606
2023-03-05 23:27:20 +00:00
parent 277dfa53e4
commit 4b4202b4b7

View File

@@ -177,7 +177,7 @@ end)
if not value then value = 0 end
local clamped = math.clamp(value, 0, 1000)
local item_name = element.parent.tooltip
local entity_name = element.parent.parent.parent.parent.name
local entity_name = element.parent.parent.parent.name
if not autofill_player_settings[player.name] then return end
local setting = autofill_player_settings[player.name][entity_name]
if not setting then return end