From c52a4a267bac294e6fbcc70968765e806dc863a1 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Fri, 13 Nov 2026 00:05:54 +0900 Subject: [PATCH] . --- exp_scenario/module/control/vlayer.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index 99d2f08f..786c2e2a 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -292,7 +292,8 @@ end --- @param s_index number Surface index --- @return number local function get_production_multiplier(s_index) - local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) --[[@as LuaSurface]] + ---@diagnostic disable-next-line: undefined-field + local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) local multiplier = surface.solar_power_multiplier if surface.always_day then return multiplier @@ -324,7 +325,7 @@ end --- @param s_index number Surface index --- @return number local function get_sustained_multiplier(s_index) - local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) --[[@as LuaSurface]] + local surface = assert(config.global_surface and game.surface[1] or game.surfaces[s_index]) local multiplier = surface.solar_power_multiplier if surface.always_day then return multiplier