Fixed color scheme setting not applying to active piece

This commit is contained in:
Ishaan Bhardwaj 2021-12-18 21:30:19 -05:00
parent d4360b3662
commit d46973f12d

View File

@ -209,7 +209,7 @@ function Ruleset:initializePiece(
local colours
if table.equalvalues(
self.colourscheme, {"I", "J", "L", "O", "S", "T", "Z"}
table.keys(self.colourscheme), {"I", "J", "L", "O", "S", "T", "Z"}
) then
colours = ({self.colourscheme, ColourSchemes.Arika, ColourSchemes.TTC})[config.gamesettings.piece_colour]
else