Update modules

This commit is contained in:
Squishy (C6H12O6+NaCl+H2O)
2024-05-23 10:58:57 +07:00
parent 16e472f7ef
commit ffe1bf5049
5 changed files with 44 additions and 28 deletions

View File

@@ -133,10 +133,9 @@ function Grid:applyPiece(piece)
self:applyBigPiece(piece)
return
end
offsets = piece:getBlockOffsets()
for index, offset in pairs(offsets) do
x = piece.position.x + offset.x
y = piece.position.y + offset.y
for index, offset in pairs(piece:getBlockOffsets()) do
local x = piece.position.x + offset.x
local y = piece.position.y + offset.y
if y + 1 > 0 and y < self.height then
self.grid[y+1][x+1] = {
skin = piece.skin,