diff --git a/exp_scenario/module/control/vlayer.lua b/exp_scenario/module/control/vlayer.lua index 39c4bee3..6b79a157 100644 --- a/exp_scenario/module/control/vlayer.lua +++ b/exp_scenario/module/control/vlayer.lua @@ -716,9 +716,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 - local min_input = min(properties.input_limit, production * get_production_multiplier(s_index)) - storage.energy = storage.energy + floor(min_input * mega * update_tick_energy / 60) + local production = properties.production * mega * update_tick_energy / 60 + storage.energy = storage.energy + floor(min(properties.input_limit, production * get_production_multiplier(s_index))) local interfaces = prop.interfaces.energy prune_interfaces(interfaces) diff --git a/exp_scenario/module/gui/vlayer.lua b/exp_scenario/module/gui/vlayer.lua index bf00a902..b9ba8213 100644 --- a/exp_scenario/module/gui/vlayer.lua +++ b/exp_scenario/module/gui/vlayer.lua @@ -348,7 +348,7 @@ function Elements.interface_dropdown.refresh(interface_dropdown, interfaces) local items = {} for index, interface in ipairs(interfaces) do local position = interface.position - items[index] = format_string("[%d] %.1f, %.1f", index, position.x, position.y) + items[index] = format_string("[%d] (%.1f, %.1f)", index, position.x, position.y) end interface_dropdown.items = items end