Tech Reborn

Tech Reborn

30M Downloads

oregen json could use some sanity checking

Saereth opened this issue ยท 2 comments

commented

Latest version of TR and Forge 2088, the json config files for oregen dont seem to have any sanity checking currently,
https://github.com/TechReborn/TechReborn/blob/master/src/main/java/techreborn/world/TechRebornWorldGen.java#L227

What this resulted in was an inverted max/min value causing the game/server to crash on load with an index out of bounds error. Obviously a config error on my part but a little foolproofing may be useful in the future.

commented

Ah yeah, that should be easy to add.

commented

Ive added a few checks, I could go on for ever adding them.