diff options
Diffstat (limited to 'advtrains/tracks.lua')
-rw-r--r-- | advtrains/tracks.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua index f31fef6..4b2b17c 100644 --- a/advtrains/tracks.lua +++ b/advtrains/tracks.lua @@ -269,7 +269,6 @@ function advtrains.register_tracks(tracktype, def, preset) groups = {
attached_node=1,
- advtrains_track=1,
["advtrains_track_"..tracktype]=1,
save_in_at_nodedb=1,
dig_immediate=2,
@@ -310,7 +309,7 @@ function advtrains.register_tracks(tracktype, def, preset) end
end
ndef.on_rightclick = function(pos, node, player)
- if advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then
+ if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then
switchfunc(pos, node)
advtrains.log("Switch", player:get_player_name(), pos)
end
|