mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 12:29:02 -06:00
Fixed onEnterOrHold running twice on IHS
This commit is contained in:
parent
6a3c6ecac0
commit
49775b9578
@ -517,10 +517,13 @@ function GameMode:hold(inputs, ruleset, ihs)
|
|||||||
self:initializeNextPiece(inputs, ruleset, data, false)
|
self:initializeNextPiece(inputs, ruleset, data, false)
|
||||||
end
|
end
|
||||||
self.held = true
|
self.held = true
|
||||||
if ihs then playSE("ihs")
|
|
||||||
else playSE("hold") end
|
|
||||||
self:onHold()
|
self:onHold()
|
||||||
self:onEnterOrHold(inputs, ruleset)
|
if ihs then
|
||||||
|
playSE("ihs")
|
||||||
|
else
|
||||||
|
playSE("hold")
|
||||||
|
self:onEnterOrHold(inputs, ruleset)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameMode:onEnterOrHold(inputs, ruleset)
|
function GameMode:onEnterOrHold(inputs, ruleset)
|
||||||
|
Loading…
Reference in New Issue
Block a user