From 8b35e0db9a091137e2f7bb3ca82981d9470fa58b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=A9meth=20Noel?= Date: Wed, 7 Jul 2021 18:07:27 +0200 Subject: [PATCH] Use remaining length when needed --- src/main/java/net/minestom/server/collision/CollisionUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/collision/CollisionUtils.java b/src/main/java/net/minestom/server/collision/CollisionUtils.java index 6b2fcf87c..ea75723c3 100644 --- a/src/main/java/net/minestom/server/collision/CollisionUtils.java +++ b/src/main/java/net/minestom/server/collision/CollisionUtils.java @@ -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