Only run autorun if it exists
This commit is contained in:
parent
5c59b9d6cb
commit
0fbe12772d
@ -303,10 +303,9 @@ tpt.partsdata = nil");
|
||||
|
||||
void LuaScriptInterface::Init()
|
||||
{
|
||||
if(luacon_eval("dofile(\"autorun.lua\")"))
|
||||
{
|
||||
luacon_ci->Log(CommandInterface::LogError, luacon_geterror());
|
||||
}
|
||||
if(Client::Ref().FileExists("autorun.lua"))
|
||||
if(luacon_eval("dofile(\"autorun.lua\")"))
|
||||
luacon_ci->Log(CommandInterface::LogError, luacon_geterror());
|
||||
}
|
||||
|
||||
void LuaScriptInterface::SetWindow(ui::Window * window)
|
||||
|
Loading…
Reference in New Issue
Block a user