Fix OpenPoint

This commit is contained in:
KAMKEEL committed 2022-11-05 04:20:43 -04:00
1 parent 344e2f0144
commit 6e67dbd37e
1 file changed
+2 -2
@@ -105,12 +105,12 @@ public class FlyPathFinder extends PathFinder
BlockPos blockpos1 = new BlockPos(entity);
return this.openPoint(blockpos1.getX(), i, blockpos1.getZ());
return this.openPoint(blockpos1.getX(), i, blockpos1.getZ(), i);
}
public FlyPathPoint getPathPointToCoords(Entity entityIn, double x, double y, double z)
{
return openPoint(MathHelper.floor_double(x), MathHelper.floor_double(y), MathHelper.floor_double(z));
return openPoint(MathHelper.floor_double(x), MathHelper.floor_double(y), MathHelper.floor_double(z), (int)z);
}