Tough As Nails

Tough As Nails

21M Downloads

Overwriting FoodStats::tick crashes with other mods injecting into the same method

Fuzss opened this issue ยท 1 comments

commented

Please don't use @Overwrite on FoodStats::tick. My Golden Age Combat mod tries to inject into that method, it being overwritten by Tough As Nails leads to a crash on start-up.

Using @Inject at HEAD and then calling CallbackInfo::cancel leads to exactly the same result without having any compatibility issues.

commented

Closing this as this is effectively what is done now, except with ASM rather than Mixins.