diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-06-10 17:30:50 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2018-06-10 17:30:50 +0200 |
commit | 38d10acca24e5a34671a1a71f12923002d06253d (patch) | |
tree | a72aa02902af4dd37bbfa753bdb1ef651e72be88 /advtrains/tracks.lua | |
parent | 3e29cba6af2e19909b6d143cecaec877aaf3a7bd (diff) | |
parent | 8d8e8c1553bc631b8f357005b506bc651de9a138 (diff) | |
download | advtrains-38d10acca24e5a34671a1a71f12923002d06253d.tar.gz advtrains-38d10acca24e5a34671a1a71f12923002d06253d.tar.bz2 advtrains-38d10acca24e5a34671a1a71f12923002d06253d.zip |
Merge branch 'master' of https://github.com/orwell96/advtrains
Diffstat (limited to 'advtrains/tracks.lua')
-rw-r--r-- | advtrains/tracks.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua index 4b2b17c..f31fef6 100644 --- a/advtrains/tracks.lua +++ b/advtrains/tracks.lua @@ -269,6 +269,7 @@ 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,
@@ -309,7 +310,7 @@ function advtrains.register_tracks(tracktype, def, preset) end
end
ndef.on_rightclick = function(pos, node, player)
- if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then
+ if advtrains.check_turnout_signal_protection(pos, player:get_player_name()) then
switchfunc(pos, node)
advtrains.log("Switch", player:get_player_name(), pos)
end
|