aboutsummaryrefslogtreecommitdiff
path: root/tracks.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2016-05-29 22:02:51 +0200
committerorwell96 <mono96.mml@gmail.com>2016-05-29 22:02:51 +0200
commitc71b0209270daa2df717c449c67507d9db0dc0a9 (patch)
tree730a9c1d91c082ae45c3887d45e4910134d3a93a /tracks.lua
parent6e34cb19559ccc99ea11ccec6fc20172fdda25e2 (diff)
downloadadvtrains-c71b0209270daa2df717c449c67507d9db0dc0a9.tar.gz
advtrains-c71b0209270daa2df717c449c67507d9db0dc0a9.tar.bz2
advtrains-c71b0209270daa2df717c449c67507d9db0dc0a9.zip
fixed lua errors and code mistakes
Diffstat (limited to 'tracks.lua')
-rw-r--r--tracks.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tracks.lua b/tracks.lua
index 54c7100..f9e4b2b 100644
--- a/tracks.lua
+++ b/tracks.lua
@@ -74,10 +74,10 @@ function advtrains.register_tracks(tracktype, def)
after_dig_node=function(pos)
advtrains.invalidate_all_paths()
advtrains.reset_trackdb_position(pos)
- end
+ end,
after_place_node=function(pos)
advtrains.reset_trackdb_position(pos)
- end
+ end,
}
minetest.register_node(def.nodename_prefix.."_st", advtrains.merge_tables(common_def, make_overdef("st", 0, 4), def.straight or {}))
minetest.register_node(def.nodename_prefix.."_st_45", advtrains.merge_tables(common_def, make_overdef("st_45", 1, 5), def.straight45 or {}))