mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
fix: touch disabled switching stations
Otherwise the "switching station reenable abm" (see file switchting_station.lua) will reenable the disabled switching station at its next run.
This commit is contained in:
parent
f14faa6680
commit
b7a68f74cb
|
@ -192,6 +192,7 @@ local get_network = function(sw_pos, pos1, tier)
|
|||
local meta = minetest.get_meta(pos)
|
||||
meta:set_int("active", 0)
|
||||
meta:set_string("active_pos", minetest.serialize(sw_pos))
|
||||
meta:set_int(tier.."_EU_timeout", 2) -- Touch node
|
||||
end
|
||||
return cached.PR_nodes, cached.BA_nodes, cached.RE_nodes
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user