diff --git a/src/main/java/fzmm/zailer/me/utils/SkinPart.java b/src/main/java/fzmm/zailer/me/utils/SkinPart.java index 15c49438..d544f1ef 100644 --- a/src/main/java/fzmm/zailer/me/utils/SkinPart.java +++ b/src/main/java/fzmm/zailer/me/utils/SkinPart.java @@ -2,6 +2,7 @@ import com.google.common.collect.ImmutableList; import fzmm.zailer.me.utils.position.PosI; +import net.minecraft.util.math.MathHelper; import java.util.ArrayList; import java.util.List; @@ -205,7 +206,7 @@ default byte[][] get(byte x, byte y, byte hatX, byte hatY, byte width, byte heig // [x][x][x][x] byte[][] result = new byte[2][4]; - byte rightEmptyAreaSize = (byte) Math.clamp(width - maxWidth + emptyAreaSize, 0, emptyAreaSize); + byte rightEmptyAreaSize = (byte) MathHelper.clamp(width - maxWidth + emptyAreaSize, 0, emptyAreaSize); // [ ][x][x][ ] // [ ][ ][ ][ ]