From 7c8c5bb11de40b4c2d43a763efdba462bc7a6c9a Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Wed, 2 Dec 2020 13:41:47 -0500 Subject: [PATCH] Hide hold queue when hold is disabled --- tetris/modes/gamemode.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index dec7a15..1b361d5 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -462,7 +462,7 @@ function GameMode:drawNextQueue(ruleset) drawPiece(next_piece, skin, ruleset.block_offsets[next_piece][rotation], -16+i*80, -32) end end - if self.hold_queue ~= nil then + if self.hold_queue ~= nil and self.enable_hold then local hold_color = self.held and 0.6 or 1 self:setHoldOpacity(1, hold_color) drawPiece(