diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/turtle/dance.lua b/src/main/resources/assets/computercraft/lua/rom/programs/turtle/dance.lua index 8efe68930..20b14f12e 100644 --- a/src/main/resources/assets/computercraft/lua/rom/programs/turtle/dance.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/turtle/dance.lua @@ -93,18 +93,10 @@ end print("Press any key to stop the groove") parallel.waitForAny( + function() os.pullEvent("key") end, function() while true do - local _, key = os.pullEvent("key") - if key ~= keys.escape then - return - end - end - end, - function() - while true do - local fnMove = tMoves[math.random(1, #tMoves)] - fnMove() + tMoves[math.random(1, #tMoves)]() end end )