aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-08-20 20:53:22 +0200
committerorwell96 <orwell@bleipb.de>2019-08-20 20:53:22 +0200
commit9d3c9c07d115a8d2a07d9f1162ac664245cc951e (patch)
tree538f55667df1d33241efe98f49d59f1617c59bb3
parent663adca34ee00671452e997dce204bcab314060c (diff)
downloadposhud-master.zip
poshud-master.tar.gz
poshud-master.tar.bz2
Do not assume that advtrains is present at allHEADmaster
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d2f465f..c17d90f 100644
--- a/init.lua
+++ b/init.lua
@@ -193,7 +193,7 @@ minetest.register_globalstep(function (dtime)
local s_time = "Time: "..get_time()
local s_rwt = ""
- if advtrains.lines and advtrains.lines.rwt then
+ if advtrains and advtrains.lines and advtrains.lines.rwt then
s_rwt = "\nRailway Time: "..advtrains.lines.rwt.to_string(advtrains.lines.rwt.now(), true)
end