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)