1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-12-12 11:10:29 +00:00

Clean up dance.lua

Not sure what keys.escape was doing there. That's very old.
This commit is contained in:
Jonathan Coates 2020-04-28 09:51:06 +01:00
parent 8fac68386e
commit 447c3ab125
No known key found for this signature in database
GPG Key ID: D6D4CB5BFBBB5CB8

View File

@ -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
)