Added the ability to toggle next piece SFX

This commit is contained in:
Ishaan Bhardwaj
2020-12-05 17:32:15 -05:00
parent 06cbec4bc8
commit f4779c9847
2 changed files with 2 additions and 1 deletions

View File

@@ -415,7 +415,7 @@ function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next
table.remove(self.next_queue, 1)
table.insert(self.next_queue, self:getNextPiece(ruleset))
end
self:playNextSound()
if config.gamesettings.next_se == 1 then self:playNextSound() end
end
function GameMode:playNextSound()