Skip to content

Commit 9cf2fbe

Browse files
committed
1 parent 2502094 commit 9cf2fbe

File tree

1 file changed

+3
-1
lines changed
  • src/main/resources/assets/opencomputers/loot/openos/boot

1 file changed

+3
-1
lines changed

src/main/resources/assets/opencomputers/loot/openos/boot/01_process.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ end
5252
_coroutine.wrap = function(f)
5353
local thread = coroutine.create(f)
5454
return function(...)
55-
return select(2, coroutine.resume(thread, ...))
55+
local result, reason = coroutine.resume(thread, ...)
56+
assert(result, reason)
57+
return reason
5658
end
5759
end
5860

0 commit comments

Comments
 (0)