From c71b0209270daa2df717c449c67507d9db0dc0a9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sun, 29 May 2016 22:02:51 +0200 Subject: fixed lua errors and code mistakes --- tracks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tracks.lua') 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 {})) -- cgit v1.2.3