From 6104964f60bac00a4ac1359bd244d361e50786bd Mon Sep 17 00:00:00 2001 From: shedaniel Date: Thu, 27 Aug 2020 19:36:00 +0800 Subject: Migrate from yarn to mojmap Signed-off-by: shedaniel --- .../src/main/java/me/shedaniel/rei/utils/CollectionUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/utils/CollectionUtils.java') diff --git a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/utils/CollectionUtils.java b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/utils/CollectionUtils.java index a6d61ea29..1060a6bdc 100644 --- a/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/utils/CollectionUtils.java +++ b/RoughlyEnoughItems-api/src/main/java/me/shedaniel/rei/utils/CollectionUtils.java @@ -29,7 +29,7 @@ import com.google.common.collect.UnmodifiableIterator; import me.shedaniel.rei.api.EntryStack; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; -import net.minecraft.util.math.MathHelper; +import net.minecraft.util.Mth; import java.util.*; import java.util.function.Function; @@ -281,7 +281,7 @@ public class CollectionUtils { public static Iterable> partition(List list, int size) { return () -> new UnmodifiableIterator>() { int i = 0; - int partitionSize = MathHelper.ceil(list.size() / (float) size); + int partitionSize = Mth.ceil(list.size() / (float) size); @Override public boolean hasNext() { -- cgit