From b95d66adc84d396647fb2e543ad0a91fce4eac23 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 9 Jan 2021 14:55:01 -0500 Subject: [PATCH] fixed IMS crashing some rotation systems --- tetris/modes/joker.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/joker.lua b/tetris/modes/joker.lua index 9668cfe..335c932 100644 --- a/tetris/modes/joker.lua +++ b/tetris/modes/joker.lua @@ -77,7 +77,7 @@ function JokerGame:onPieceEnter() for i = 1, 10 do local new_piece = self.piece:withOffset({x=-i, y=0}) if self.grid:canPlacePiece(new_piece) then - self.piece = new_piece + self.piece:setOffset({x=-i, y=0}) break end if not rush then break end @@ -86,7 +86,7 @@ function JokerGame:onPieceEnter() for i = 1, 10 do local new_piece = self.piece:withOffset({x=i, y=0}) if self.grid:canPlacePiece(new_piece) then - self.piece = new_piece + self.piece:setOffset({x=i, y=0}) break end if not rush then break end