diff options
author | orwell96 <mono96.mml@gmail.com> | 2016-05-29 22:02:51 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2016-05-29 22:02:51 +0200 |
commit | c71b0209270daa2df717c449c67507d9db0dc0a9 (patch) | |
tree | 730a9c1d91c082ae45c3887d45e4910134d3a93a /tracks.lua | |
parent | 6e34cb19559ccc99ea11ccec6fc20172fdda25e2 (diff) | |
download | advtrains-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.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 {}))
|