CC: Tweaked

CC: Tweaked

42M Downloads

unpack({}, 1, 1e10) returns result of coroutine.yield.

fatboychummy opened this issue ยท 1 comments

commented

Useful information to include:

  • Minecraft version: Seems to affect everything, including emulators
  • CC: Tweaked version: See above (tested on 1.94 iirc, and whatever version I have on 1.12.2, and CC:Aide in MCCM)

Reproduction

If using the builtin Lua repl, simply typing unpack({}, 1, 1e10) should freeze the game for a moment then return "key_up", keys.enter.

If using the CC: Aide bot, run the following:

os.queueEvent("DummyEvent", 32, "Hello")
unpack({}, 1, 1e10)

Not sure exactly what is causing this, but it's quite interesting to note.

commented

It should be of note that this only occurs with 1e10 (and -1e10). <= 1e9 and >= 1e11 will just freeze the computer then kill the computer for running too long.