mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-07 06:20:42 +02:00
Only run autorun if it exists
This commit is contained in:
@@ -303,10 +303,9 @@ tpt.partsdata = nil");
|
|||||||
|
|
||||||
void LuaScriptInterface::Init()
|
void LuaScriptInterface::Init()
|
||||||
{
|
{
|
||||||
if(luacon_eval("dofile(\"autorun.lua\")"))
|
if(Client::Ref().FileExists("autorun.lua"))
|
||||||
{
|
if(luacon_eval("dofile(\"autorun.lua\")"))
|
||||||
luacon_ci->Log(CommandInterface::LogError, luacon_geterror());
|
luacon_ci->Log(CommandInterface::LogError, luacon_geterror());
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LuaScriptInterface::SetWindow(ui::Window * window)
|
void LuaScriptInterface::SetWindow(ui::Window * window)
|
||||||
|
Reference in New Issue
Block a user