package net.PeytonPlayz585.shadow.math;

public class MathUtils {
    public static int getAverage(int[] p_getAverage_0_) {
        if (p_getAverage_0_.length <= 0) {
            return 0;
        } else {
            int i = 0;

            for (int j = 0; j < p_getAverage_0_.length; ++j) {
                int k = p_getAverage_0_[j];
                i += k;
            }

            int l = i / p_getAverage_0_.length;
            return l;
        }
    }
}