JAOPCA

JAOPCA

23M Downloads

[1.14.4] Line of code causing a crash

LexxieSlevaskos opened this issue ยท 2 comments

commented

Here is my log, I had someone else to review it apparently in their research one of the lines caused the crash.
latest.log

commented

I should add a link to the actual code:
https://github.com/TheLMiffy1111/JAOPCA/blob/1.14/src/main/java/thelm/jaopca/data/DataCollector.java#L64

That line assumes that the resource locations that are returned will always have a slash in them (other than the one directly after "tags"). While this is normally the case, it isn't always (a file might just be tags/blah.json, rather than tags/blocks/blah.json in some unusual situations). It just needs a basic safety check added.

commented

Fixed