mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2025-05-13 20:21:24 -05:00
BONKERS handles rotate reset correctly now
This commit is contained in:
@@ -80,9 +80,13 @@ function ProGame:onHold()
|
||||
end
|
||||
|
||||
function ProGame:whilePieceActive()
|
||||
self.piece.lock_delay = self.piece.lowest_y < self.piece.position.y
|
||||
and 0 or self.piece.lock_delay
|
||||
self.piece.lowest_y = math.max(self.piece.lowest_y, self.piece.position.y)
|
||||
for _, block in pairs(self.piece:getBlockOffsets()) do
|
||||
local y = self.piece.position.y + block.y
|
||||
if y > self.piece.lowest_y then
|
||||
self.piece.lock_delay = 0
|
||||
self.piece.lowest_y = y
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function ProGame:onLineClear(cleared_row_count)
|
||||
|
||||
Reference in New Issue
Block a user