1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-09-07 13:27:59 +00:00

Update workspace.lua

This commit is contained in:
LDDestroier
2019-06-23 00:20:32 -04:00
committed by GitHub
parent b622bd88f4
commit cfb18f9dcc

View File

@@ -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