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:
parent
8fac68386e
commit
447c3ab125
@ -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
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user