diff --git a/src/zy-neo/zinit.lua b/src/zy-neo/zinit.lua index d8ba0d4..00c81fa 100644 --- a/src/zy-neo/zinit.lua +++ b/src/zy-neo/zinit.lua @@ -14,7 +14,10 @@ local computer = computer local booted = false local zcfg = {} function log(...) - component.proxy(component.list("ocemu")() or component.list("sandbox")()).log(...) + local c = component.list("ocemu")() or component.list("sandbox")()) + if c then + component.proxy(c).log(...) + end end local th_i = 0 local function th_a(func)