mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-06 22:04:39 +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")
|
print("Press any key to stop the groove")
|
||||||
|
|
||||||
parallel.waitForAny(
|
parallel.waitForAny(
|
||||||
|
function() os.pullEvent("key") end,
|
||||||
function()
|
function()
|
||||||
while true do
|
while true do
|
||||||
local _, key = os.pullEvent("key")
|
tMoves[math.random(1, #tMoves)]()
|
||||||
if key ~= keys.escape then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
function()
|
|
||||||
while true do
|
|
||||||
local fnMove = tMoves[math.random(1, #tMoves)]
|
|
||||||
fnMove()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user