diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index e3308163..bff01390 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -628,6 +628,7 @@ local function handle_output_interfaces() local quality = filter.value and filter.value.quality if name and allowed_items[name] then local quality_level = quality_name_to_level[quality] + ---@diagnostic disable-next-line: undefined-field local wanted = min(assert(filter.min) - inventory.get_item_count(name), prop.storage.items[name][quality_level]) if wanted > 0 and inventory.can_insert{ name = name, count = wanted, quality = quality } then local removed = Vlayer.remove_item(s_index, name, wanted, quality_level) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index 82b71c2d..f5d6b478 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -259,6 +259,7 @@ function Elements.stats_table.refresh_online() if element then local surface_name = element.items[element.selected_index] if surface_name then + ---@diagnostic disable-next-line: undefined-field surface = game.surfaces[surface_name].index end end @@ -478,6 +479,7 @@ function Elements.controls.get_selected_interface(controls) if element then local surface_name = element.items[element.selected_index] if surface_name then + ---@diagnostic disable-next-line: undefined-field surface = game.surfaces[surface_name].index end end @@ -495,6 +497,7 @@ function Elements.controls.refresh_interfaces(controls) if element then local surface_name = element.items[element.selected_index] if surface_name then + ---@diagnostic disable-next-line: undefined-field surface = game.surfaces[surface_name].index end end