diff options
author | ywang <yw05@forksworld.de> | 2020-04-12 16:12:07 +0200 |
---|---|---|
committer | ywang <yw05@forksworld.de> | 2020-04-12 16:12:07 +0200 |
commit | e06198f7c3126ea571408da301bb6f8abe35eeed (patch) | |
tree | b0c4adf89bd82fe697b76ae8b9c74d64a9481131 /advtrains/init.lua | |
parent | 7bfccc78a097201c4a3106b9f3142ddd6534bca1 (diff) | |
download | advtrains-e06198f7c3126ea571408da301bb6f8abe35eeed.tar.gz advtrains-e06198f7c3126ea571408da301bb6f8abe35eeed.tar.bz2 advtrains-e06198f7c3126ea571408da301bb6f8abe35eeed.zip |
Stage changes
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r-- | advtrains/init.lua | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua index d36d2dd..753ace6 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -366,18 +366,11 @@ advtrains.save_component = function (tbl, name) end local path = advtrains.fpath.."_"..name local success = minetest.safe_file_write(path, datastr) - + if not success then minetest.log("error", " Failed to write advtrains save data to file "..path) end -<<<<<<< HEAD -======= - file:write(datastr) - file:close() - os.rename(temppath, advtrains.fpath.."_"..name) - ->>>>>>> hostfix for trains ignoring ATC tracks end advtrains.avt_save = function(remove_players_from_wagons) |