mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Use remaining length when needed
This commit is contained in:
parent
5ae26c44e1
commit
8b35e0db9a
@ -74,7 +74,7 @@ public class CollisionUtils {
|
|||||||
|
|
||||||
// add remainingLength
|
// add remainingLength
|
||||||
if (!collisionFound) {
|
if (!collisionFound) {
|
||||||
collisionFound = stepOnce(instance, originChunk, axis, sign, corners);
|
collisionFound = stepOnce(instance, originChunk, axis, remainingLength, corners);
|
||||||
}
|
}
|
||||||
|
|
||||||
// find the corner which moved the least
|
// find the corner which moved the least
|
||||||
|
Loading…
Reference in New Issue
Block a user