Fix bug introduced by last commit (revert change)

master
orwell96 2017-04-12 15:11:44 +02:00
parent fe8794b353
commit 64dcbad3d2
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -263,11 +263,13 @@ function advtrains.register_tracks(tracktype, def, preset)
local rcswitchfunc=function(pos, node, player)
if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then
advtrains.ndb.swap_node(pos, {name=def.nodename_prefix.."_"..suffix_target, param2=node.param2})
advtrains.invalidate_all_paths()
end
end
local switchfunc=function(pos, node, newstate)
if newstate~=is_state then
advtrains.ndb.swap_node(pos, {name=def.nodename_prefix.."_"..suffix_target, param2=node.param2})
advtrains.invalidate_all_paths()
end
end
local mesec