Silent Gear

Silent Gear

19M Downloads

Error when disabling common materials

MineWitherMC opened this issue ยท 1 comments

commented

Disabling materials with

{"availability":{"enabled":false}}

doesn't work and has to be done with something like

{
    "type": "main",
    "stats": [],
    "traits": [],
    "crafting_items": {},
    "display": {
        "hidden": true
    },
    "availability": {
        "enabled": false
    },
    "tier": -1
}

otherwise the material is not removed. This is caused by this method yielding NullPointerException when stats, display, etc are not present.
Also related: if material is not hidden, it is shown in example recipes. This also is true for disabled materials.

Versions

  • Silent Gear: 0.3.0, 0.3.1 and older
  • Silent Lib: 3.0.8-158
  • Forge: 14.23.4.2759
commented

Fixed in version 0.4.0