Merge pull request #238 from Cooldude2606/fix/autofill-amounts

Fixed auto fill amounts not working
This commit is contained in:
Cooldude2606
2023-03-07 00:08:52 +00:00
committed by GitHub

View File

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