From 00943163c8501394aac1cc30850d93120e4529fb Mon Sep 17 00:00:00 2001 From: Lignum Date: Tue, 16 May 2017 21:53:50 +0200 Subject: [PATCH] Replace type check with nil check --- src/main/resources/assets/computercraft/lua/rom/startup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/computercraft/lua/rom/startup b/src/main/resources/assets/computercraft/lua/rom/startup index fe250d7a0..2e7089d9a 100644 --- a/src/main/resources/assets/computercraft/lua/rom/startup +++ b/src/main/resources/assets/computercraft/lua/rom/startup @@ -248,7 +248,7 @@ if settings.get( "shell.allow_disk_startup" ) then end end end -if type( tUserStartups ) == "table" then +if tUserStartups then for _,v in pairs( tUserStartups ) do shell.run( v ) end