aboutsummaryrefslogtreecommitdiff
path: root/advtrains/tracks.lua
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2018-02-21 19:58:45 +0100
committerorwell96 <orwell@bleipb.de>2018-02-21 20:03:34 +0100
commit481f6218a8b377a0826b7e080046b5a890702e12 (patch)
tree3baa24616afb8790eb16f882863241b9f7d91523 /advtrains/tracks.lua
parent4c512f1dc5755efc7afd55b58078ec466442f648 (diff)
downloadadvtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.gz
advtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.bz2
advtrains-481f6218a8b377a0826b7e080046b5a890702e12.zip
Log certain events in a logfile in the world directory
(also fix the output of /at_sync_ndb)
Diffstat (limited to 'advtrains/tracks.lua')
-rw-r--r--advtrains/tracks.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/advtrains/tracks.lua b/advtrains/tracks.lua
index 6d218b1..4b2b17c 100644
--- a/advtrains/tracks.lua
+++ b/advtrains/tracks.lua
@@ -311,6 +311,7 @@ function advtrains.register_tracks(tracktype, def, preset)
ndef.on_rightclick = function(pos, node, player)
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
end
if var.switchmc then