Resourceful Lib

Resourceful Lib

50M Downloads

[Bug]: This lib causes "renderLabels" don't exist

FaeWulf opened this issue ยท 1 comments

commented

Bug Description

My mod contains a Mixin Injection like this:

 @ModifyExpressionValue(method = "renderLabels", at = @At(value = "CONSTANT", args = "intValue=40", ordinal = 0))
    private int modifyLevelLimit(int original) {
        if(ModConfigs.no_level_limit_anvil)
            return Integer.MAX_VALUE;
        else
            return original;
    }

And it will crash if you open an anvil.
The thing is, if I remove this mod from the game, that injection is success.

How to Reproduce?

Install my mod if needed: https://modrinth.com/mod/faewufs-diversity
Open the anvil

Expected Behavior

Open anvil should not crash the game.

Version

3.0.10

Mod Loader Version

0.16.0

Logs or additional context

https://mclo.gs/RKERXd5

Acknowledgement

  • I agree that I read the terms at the top of the page.
commented

Sorry for this one, there is something to do with the mappings conflict, that I can solve myself.