aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-12-18 10:01:47 +0100
committerorwell96 <orwell@bleipb.de>2019-12-18 10:01:47 +0100
commit50a81dd1f312cf427944812f0e599b54e11b1a61 (patch)
treec4484ea360674bd0f31f9f473bc426b446f18181 /advtrains_luaautomation/init.lua
parentd123679b3c6e44a002ea2fb9e32daa1aa1b0663d (diff)
downloadadvtrains-50a81dd1f312cf427944812f0e599b54e11b1a61.tar.gz
advtrains-50a81dd1f312cf427944812f0e599b54e11b1a61.tar.bz2
advtrains-50a81dd1f312cf427944812f0e599b54e11b1a61.zip
Fix RWT initialization when creating new world (H#142)
Diffstat (limited to 'advtrains_luaautomation/init.lua')
-rw-r--r--advtrains_luaautomation/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/advtrains_luaautomation/init.lua b/advtrains_luaautomation/init.lua
index 75cf30a..573a553 100644
--- a/advtrains_luaautomation/init.lua
+++ b/advtrains_luaautomation/init.lua
@@ -44,7 +44,8 @@ local filename=minetest.get_worldpath().."/advtrains_luaautomation"
function atlatc.load()
local file, err = io.open(filename, "r")
if not file then
- minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": "..(err or "Unknown Error"))
+ minetest.log("warning", " Failed to read advtrains_luaautomation save data from file "..filename..": "..(err or "Unknown Error"))
+ minetest.log("warning", " (this is normal when first enabling advtrains on this world)")
else
atprint("luaautomation reading file:",filename)
local tbl = minetest.deserialize(file:read("*a"))