Fixed onEnterOrHold running twice on IHS

pull/34/head
Ishaan Bhardwaj 2021-09-11 18:19:03 -04:00
parent 6a3c6ecac0
commit 49775b9578
1 changed files with 6 additions and 3 deletions

View File

@ -517,10 +517,13 @@ function GameMode:hold(inputs, ruleset, ihs)
self:initializeNextPiece(inputs, ruleset, data, false)
end
self.held = true
if ihs then playSE("ihs")
else playSE("hold") end
self:onHold()
self:onEnterOrHold(inputs, ruleset)
if ihs then
playSE("ihs")
else
playSE("hold")
self:onEnterOrHold(inputs, ruleset)
end
end
function GameMode:onEnterOrHold(inputs, ruleset)