diff --git a/src/main/java/codechicken/lib/render/pipeline/attribute/AttributeKey.java b/src/main/java/codechicken/lib/render/pipeline/attribute/AttributeKey.java index 2cc2a4a3..f54b73f3 100644 --- a/src/main/java/codechicken/lib/render/pipeline/attribute/AttributeKey.java +++ b/src/main/java/codechicken/lib/render/pipeline/attribute/AttributeKey.java @@ -6,6 +6,7 @@ import codechicken.lib.util.ArrayUtils; import codechicken.lib.util.Copyable; +import java.lang.reflect.Array; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -44,7 +45,7 @@ public T createDefault(int length) { @Override public T copy(T src, int length) { T dst = createDefault(length); - ArrayUtils.arrayCopy(src, 0, dst, 0, ((Object[]) src).length); + ArrayUtils.arrayCopy(src, 0, dst, 0, Array.getLength(src)); return dst; }