Better patcher multi-dimensional array support

This commit is contained in:
Anuken
2025-11-04 23:54:39 -05:00
parent 3656e90ae1
commit 11a7a41648
3 changed files with 49 additions and 2 deletions

View File

@@ -238,6 +238,13 @@ public class ContentPatcher{
}, value, false);
}
}else{
if(metadata != null){
var meta = new FieldData(metadata.type.isArray() ? metadata.type.getComponentType() : metadata.elementType, null, null);
if(meta.type != null){
metadata = meta;
}
}
int i = Strings.parseInt(field);
int length = object instanceof Seq s ? s.size : Array.getLength(object);