From cfb18f9dcc0f16fa3c19d7f2477f6717f2071fdf Mon Sep 17 00:00:00 2001 From: LDDestroier Date: Sun, 23 Jun 2019 00:20:32 -0400 Subject: [PATCH] Update workspace.lua --- workspace.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.lua b/workspace.lua index c3cb27f..9c75147 100644 --- a/workspace.lua +++ b/workspace.lua @@ -691,7 +691,7 @@ local newInstance = function(x, y, program, initialStart) instance.paused = false term.setCursorBlink(false) if not instance.program or type(instance.program) == "string" then - load(function() pcall(function() shell.run(instance.program) end) end, nil, nil, instance.env) + pcall(load(function() shell.run(instance.program) end, nil, nil, instance.env)) elseif type(instance.program) == "function" then pcall(function() load(instance.program, nil, nil, instance.env) end) end