From 09286d3c9ccec30c933622f330a9cdb6633c09d6 Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Fri, 1 Oct 2021 06:06:46 +0000 Subject: [PATCH] Resolved bottoming out edge cases with collisions. No more empty block bugs. Co-authored-by: sigonasr2 --- src/sig/Board.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sig/Board.java b/src/sig/Board.java index 19843ef..cc354eb 100644 --- a/src/sig/Board.java +++ b/src/sig/Board.java @@ -79,6 +79,7 @@ public class Board { if (blocks.yspd>0) { if (blocks2.y+(blocks2.collisionColumnRanges[x][0])*block_height>FUTURE_FALL_POSITION+(blocks.collisionColumnRanges[x][1])*block_height) { if (FUTURE_FALL_POSITION+(blocks.collisionColumnRanges[x][1])*block_height>blocks2.y+(blocks2.collisionColumnRanges[x][0])*block_height) { + CombineAToBFromBelow(blocks,blocks2); HandleBlockLand(blocks, x, blocks2.y+(blocks2.collisionColumnRanges[x][0])*block_height-blocks.maxBlockHeight*block_height); continue outerloop; }