mirror of
https://github.com/LDDestroier/CC/
synced 2025-01-05 23:10:28 +00:00
Update workspace.lua
This commit is contained in:
parent
b622bd88f4
commit
cfb18f9dcc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user