mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 16:19:03 -06:00
Applied a fix for locking big pieces out of the grid
This commit is contained in:
parent
086f327371
commit
0b6f62d50e
@ -201,7 +201,7 @@ function Grid:applyBigPiece(piece)
|
||||
y = piece.position.y + offset.y
|
||||
for a = 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] = {
|
||||
skin = piece.skin,
|
||||
colour = piece.colour
|
||||
|
Loading…
Reference in New Issue
Block a user