aboutsummaryrefslogtreecommitdiff
path: root/advtrains/tracks.lua
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-02-18 22:52:57 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-02-18 22:52:57 +0100
commit81d637dc76317df249a4d290006975141ab1a605 (patch)
tree0c5c4b22002ee4c6c6a620c1142225706a5a6283 /advtrains/tracks.lua
parent06cdb14f3d28780f011d842c17580c748d2020f2 (diff)
downloadadvtrains-81d637dc76317df249a4d290006975141ab1a605.tar.gz
advtrains-81d637dc76317df249a4d290006975141ab1a605.tar.bz2
advtrains-81d637dc76317df249a4d290006975141ab1a605.zip
added separate logging for railway networks
Diffstat (limited to 'advtrains/tracks.lua')
-rw-r--r--advtrains/tracks.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua
index 6d218b1..74122f2 100644
--- a/advtrains/tracks.lua
+++ b/advtrains/tracks.lua
@@ -310,7 +310,8 @@ function advtrains.register_tracks(tracktype, def, preset)
end
ndef.on_rightclick = function(pos, node, player)
if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then
- switchfunc(pos, node)
+ switchfunc(pos, node)
+ advtrains.log("Switch", player:get_player_name(), pos)
end
end
if var.switchmc then