Minor piece bottom SFX fix

This commit is contained in:
Ishaan Bhardwaj 2021-01-12 15:20:22 -05:00
parent 3f8d68cc9d
commit fa97216167

View File

@ -112,8 +112,14 @@ function Ruleset:rotatePiece(inputs, piece, grid, prev_inputs, initial)
end
end
local was_drop_blocked = piece:isDropBlocked(grid)
self:attemptRotate(new_inputs, piece, grid, initial)
if not was_drop_blocked and piece:isDropBlocked(grid) then
playSE("bottom")
end
-- prev_inputs becomes the previous inputs
for input, value in pairs(inputs) do
prev_inputs[input] = inputs[input]