This commit is contained in:
Anuken
2021-11-29 20:13:59 -05:00
parent 22564de3c8
commit feba9d677e
2 changed files with 3 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ public class Attributes implements JsonSerializable{
public void add(Attributes other){
check();
other.check();
for(int i = 0; i < arr.length; i++){
arr[i] += other.arr[i];
}
@@ -32,6 +33,7 @@ public class Attributes implements JsonSerializable{
public void add(Attributes other, float scl){
check();
other.check();
for(int i = 0; i < arr.length; i++){
arr[i] += other.arr[i] * scl;
}