mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-22 15:33:12 +09:00
.
This commit is contained in:
1 parent
4ce7bddeb4
commit
2366fb3abf
1 file changed
+2
-1
@@ -707,7 +707,8 @@ local function handle_energy_interfaces()
|
|||||||
for s_index, prop in pairs(vlayer_data) do
|
for s_index, prop in pairs(vlayer_data) do
|
||||||
local storage = prop.storage
|
local storage = prop.storage
|
||||||
local properties = prop.properties
|
local properties = prop.properties
|
||||||
local min_input = min(properties.input_limit, properties.production * get_production_multiplier(s_index))
|
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)
|
storage.energy = storage.energy + floor(min_input * mega * update_tick_energy / 60)
|
||||||
|
|
||||||
local interfaces = prop.interfaces.energy
|
local interfaces = prop.interfaces.energy
|
||||||
|
|||||||
Reference in new issue
Block a user