This commit is contained in:
Anuken
2021-11-04 19:34:28 -04:00
parent b418afed63
commit 9e68b0a72b
2 changed files with 6 additions and 2 deletions

View File

@@ -56,6 +56,10 @@ public class Attributes implements JsonSerializable{
} }
private void check(){ private void check(){
if(arr.length != Attribute.all.length) arr = new float[Attribute.all.length]; if(arr.length != Attribute.all.length){
var last = arr;
arr = new float[Attribute.all.length];
System.arraycopy(last, 0, arr, 0, Math.min(last.length, arr.length));
}
} }
} }

View File

@@ -24,4 +24,4 @@ android.useAndroidX=true
#used for slow jitpack builds; TODO see if this actually works #used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
archash=ace698cee9e0ea2bc7993ffa44501122bd891b44 archash=f8d38a3dd1efa587d3ac08c3b765223935ddffa2