diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index 0585c702..2d29b774 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -707,8 +707,8 @@ local function handle_energy_interfaces() for s_index, prop in pairs(vlayer_data) do local storage = prop.storage local properties = prop.properties - local production = properties.production * mega * (update_tick_energy / 60) - storage.energy = storage.energy + min(properties.input_limit, floor(production * get_production_multiplier(s_index))) + local production = properties.production * (update_tick_energy / 60) + storage.energy = storage.energy + min(properties.input_limit, floor(production * get_production_multiplier(s_index))) * mega local interfaces = prop.interfaces.energy prune_interfaces(interfaces)