This commit is contained in:
phidias authored and GitHub committed 2026-11-12 21:53:49 +09:00
1 parent 67a9f0edca
commit dd0504a5dd
2 files changed
+3 -4

No files matched your search

+2 -3
View File
@@ -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)
+1 -1
View File
@@ -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