Block Drawer cleanup

This commit is contained in:
Anuke
2022-03-06 13:03:14 -05:00
parent bc0b0b254d
commit fb2b266661
29 changed files with 132 additions and 337 deletions

View File

@@ -131,6 +131,10 @@ public class ContentParser{
//try to instantiate
return make(resolve(data.asString()));
}
//array is shorthand for DrawMulti
if(data.isArray()){
return new DrawMulti(parser.readValue(DrawBlock[].class, data));
}
var bc = resolve(data.getString("type", ""), DrawBlock.class);
data.remove("type");
var result = make(bc);