mirror of
https://github.com/theFox6/microexpansion.git
synced 2025-02-17 00:52:26 +01:00
Unconnected networks take no power.
Update power demands from technic.
This commit is contained in:
@ -60,6 +60,13 @@ me.register_node("ctrl", {
|
||||
--meta:set_int("HV_EU_input", 23)
|
||||
--meta:set_int("HV_EU_demand", 45)
|
||||
--meta:set_int("HV_EU_supply", 1045)
|
||||
local net = me.get_network(pos)
|
||||
if not net then
|
||||
local meta = minetest.get_meta(pos)
|
||||
meta:set_int("HV_EU_input", 0)
|
||||
return
|
||||
end
|
||||
net:update_demand()
|
||||
end,
|
||||
connect_sides = "nobottom",
|
||||
me_update = function(pos,_,ev)
|
||||
|
Reference in New Issue
Block a user