diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-04-12 15:11:44 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-04-12 15:11:44 +0200 |
commit | 64dcbad3d28ba4930288669511b7ed2ea980b8c8 (patch) | |
tree | 314bbf145c4f835c1a616af915e03239f617aa36 /advtrains | |
parent | fe8794b353fb3841168eb27f8bbc6c6b13f30098 (diff) | |
download | advtrains-64dcbad3d28ba4930288669511b7ed2ea980b8c8.tar.gz advtrains-64dcbad3d28ba4930288669511b7ed2ea980b8c8.tar.bz2 advtrains-64dcbad3d28ba4930288669511b7ed2ea980b8c8.zip |
Fix bug introduced by last commit (revert change)
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/advtrains/tracks.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/advtrains/tracks.lua b/advtrains/advtrains/tracks.lua index 2bb61eb..86c87ba 100644 --- a/advtrains/advtrains/tracks.lua +++ b/advtrains/advtrains/tracks.lua @@ -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
|