ARRP

ARRP

3M Downloads

Wrong serialization of JVariant

SolidBlock-cn opened this issue ยท 1 comments

commented

JState has a "List<JVariant>", which seems incorrect. For example, a block with multiple variants should be

{
  "variants": {
    "": [ {blockModel1}, {blockModel2}, {blockModel3} ]
  }
}

which will randomly use one of the variants, instead of:

{
  "variants": [
    {"": {blockModel1}},
    {"": {blockModel2}},
    {"": {blockModel3}}
  ]
}
commented

I just ran into this myself and came here to report the same issue.