The Spice of Life

The Spice of Life

16M Downloads

Gson might need to be explicitly set to lenient mode

squeek502 opened this issue ยท 1 comments

commented

Mostly just a reminder to myself.

See http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2091809-the-spice-of-life-encouraging-dietary-variety?comment=399

My thoughts:

Strange, that is the example food group config that gets distributed with the mod; it usually works fine. I know comments are not part of the JSON standard, but the Gson parser usually doesn't complain about them.

Looks like I need to make sure it's set to be lenient or something, will look into it.

commented

Wasn't able to figure out exactly what was going on here, but the version of Gson that Minecraft uses does not have explicit leniency getter/setters.