From d46973f12de47b44876879d08f79ed2ee98e75d0 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 18 Dec 2021 21:30:19 -0500 Subject: [PATCH] Fixed color scheme setting not applying to active piece --- tetris/rulesets/ruleset.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/rulesets/ruleset.lua b/tetris/rulesets/ruleset.lua index 48b1da0..ca8e1e3 100644 --- a/tetris/rulesets/ruleset.lua +++ b/tetris/rulesets/ruleset.lua @@ -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