From f37cbc3cc8c7f75f7c2abfbfe58e823c024a17ee Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Mon, 16 Nov 2026 18:53:48 +0900 Subject: [PATCH] . --- exp_scenario/module/control/vlayer.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index ecf663d1..a873f40b 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -163,8 +163,7 @@ local vlayer_data = {} --- @param surface? LuaSurface local function surface_updated(surface) - local surface_index = surface and surface.index or 0 - if surface_index == 0 then return end + local surface_index = surface and surface.index or 1 if vlayer_data[surface_index] then return end -- global surface will have its data point to the main surface