mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-13 17:28:52 -04:00
Merge branch 'OC1.3-MC1.6.4' of github.com:MightyPirates/OpenComputers
This commit is contained in:
commit
cc9c38c16d
@ -7,7 +7,10 @@ local coroutine_create = coroutine.create
|
||||
|
||||
local function findProcess(co)
|
||||
co = co or coroutine.running()
|
||||
for _, process in pairs(running) do
|
||||
for main, process in pairs(running) do
|
||||
if main == co then
|
||||
return process
|
||||
end
|
||||
for _, instance in pairs(process.instances) do
|
||||
if instance == co then
|
||||
return process
|
||||
@ -62,7 +65,7 @@ function process.load(path, env, init, name)
|
||||
command = name,
|
||||
env = env,
|
||||
parent = process,
|
||||
instances = setmetatable({thread}, {__mode="v"})
|
||||
instances = setmetatable({}, {__mode="v"})
|
||||
}
|
||||
return thread
|
||||
end
|
||||
@ -95,7 +98,7 @@ function process.install(path, name)
|
||||
path = path,
|
||||
command = name,
|
||||
env = _ENV,
|
||||
instances = setmetatable({thread}, {__mode="v"})
|
||||
instances = setmetatable({}, {__mode="v"})
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -469,7 +469,7 @@ end
|
||||
local libcomponent
|
||||
|
||||
local proxyCache = setmetatable({}, {__mode="v"})
|
||||
local proxyDirectCache = setmetatable({}, {__mode="v"})
|
||||
local proxyDirectCache = setmetatable({}, {__mode="k"})
|
||||
|
||||
local componentCallback = {
|
||||
__call = function(self, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user