Use remaining length when needed

This commit is contained in:
Németh Noel 2021-07-07 18:07:27 +02:00
parent 5ae26c44e1
commit 8b35e0db9a

View File

@ -74,7 +74,7 @@ public class CollisionUtils {
// add remainingLength
if (!collisionFound) {
collisionFound = stepOnce(instance, originChunk, axis, sign, corners);
collisionFound = stepOnce(instance, originChunk, axis, remainingLength, corners);
}
// find the corner which moved the least