Hardcore Questing Mode [FORGE/FABRIC]

Hardcore Questing Mode [FORGE/FABRIC]

16M Downloads

Crash when reputations are saved in configs

TechniumUnlimited opened this issue ยท 1 comments

commented

This code is attempting to cast a bag.GroupTier to a reputation.Reputation object, and it causes a crash on world load when a reputation is stored in the reputations.json file in the config directory. I dont know how to fix it but that is my determination, and here is my crash log: https://pastebin.com/hxWfw0R7

May or may not be a duplicate of the error described in #530

The code referenced is in bag.GroupTier

    public void loadFromString(Optional<String> string) {
        reputationMap.clear();
        string.flatMap(s -> SaveHandler.<List<Reputation>>load(s, new TypeToken<List<GroupTier>>() {}.getType()))
                .ifPresent(reputations -> reputations.forEach(this::addReputation));
    }
commented

PR #527 Fixes This Issue.