1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-01-05 23:10:28 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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