1lann / Mimic

A fully featured emulator for the Minecraft mod ComputerCraft that runs straight in your browser.
gravlann.github.io
MIT License
45 stars 20 forks source link

coroutine.yield ignores all except its first argument #44

Closed Abestanis closed 10 years ago

Abestanis commented 10 years ago

I noticed that coroutine.resume just returned 1 of the arguments passed to coroutine.yield, whereas they where all returned when executing in ComputerCraft: screenshot 215

It turns out that you overwrite the original coroutine.yield and just passing the first argument to the original yield function, so I fixed the issue by catching every additional arguments for coroutine.yield and passing them to nativeYield: screenshot 216

1lann commented 10 years ago

Thanks for that catch!