Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
101 stars 25 forks source link

Wrong serialization of JVariant #62

Closed SolidBlock-cn closed 2 years ago

SolidBlock-cn commented 2 years ago

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}}
  ]
}
chimericdream commented 2 years ago

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