From 799a905a9c836960bdf3fe0623c61c653fc5e1f7 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sun, 5 Sep 2021 22:50:31 -0400 Subject: [PATCH] Remove redundant if --- tetris/modes/gamemode.lua | 3 --- 1 file changed, 3 deletions(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index 5d1d287..3cef263 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -126,9 +126,6 @@ function GameMode:update(inputs, ruleset) if inputs["left"] or inputs["right"] then inputs["up"] = false inputs["down"] = false - elseif inputs["up"] or inputs["down"] then - inputs["left"] = false - inputs["right"] = false end end