From 23649d7c509233ce10d2d68320b6c22477e78064 Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Tue, 10 Nov 2026 19:54:53 +0900 Subject: [PATCH] e --- exp_scenario/module/control/vlayer.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index d6a33c40..13c6d015 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -755,9 +755,9 @@ end local e = defines.events Vlayer.on_init = update_surface -- The default surface exists before on_surface_created can fire -Vlayer.events[e.on_surface_created] = function update_surface(event.surface_index) end -Vlayer.events[e.on_surface_renamed] = function update_surface(event.surface_index) end -Vlayer.events[e.on_surface_imported] = function update_surface(event.surface_index) end +Vlayer.events[e.on_surface_created] = function(event) update_surface(event.surface_index) end +Vlayer.events[e.on_surface_renamed] = function(event) update_surface(event.surface_index) end +Vlayer.events[e.on_surface_imported] = function(event) update_surface(event.surface_index) end Vlayer.on_nth_tick[update_tick_storage] = update_storage Vlayer.on_nth_tick[update_tick_energy] = update_energy