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:
Alexander Ried 2020-07-16 00:24:49 +02:00 committed by Buckaroo Banzai
parent f14faa6680
commit b7a68f74cb
1 changed files with 1 additions and 0 deletions

View File

@ -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