Applied a fix for locking big pieces out of the grid

This commit is contained in:
Ishaan Bhardwaj 2021-01-25 16:34:22 -05:00
parent 086f327371
commit 0b6f62d50e

View File

@ -201,7 +201,7 @@ function Grid:applyBigPiece(piece)
y = piece.position.y + offset.y y = piece.position.y + offset.y
for a = 1, 2 do for a = 1, 2 do
for b = 1, 2 do for b = 1, 2 do
if y*2+a > 0 then if y*2+a > 0 and y*2 < self.height then
self.grid[y*2+a][x*2+b] = { self.grid[y*2+a][x*2+b] = {
skin = piece.skin, skin = piece.skin,
colour = piece.colour colour = piece.colour