-
Notifications
You must be signed in to change notification settings - Fork 2
Description
An error happened when applying mod mixins. Specifically, the HungerManagerMixin in puffish_attributes.mixins.json failed to apply during the DEFAULT phase.
The puffish_attributes mod attempted to inject code using the @at("INVOKE") annotation into the method net.minecraft.world.food.FoodData::tick(Lnet/minecraft/world/entity/player/Player;)V. However, this method had already been merged by com.minenash.action_hunger.mixin.HungerManagerMixin with a higher priority (1000), while the injection in the puffish_attributes mod had a priority of 900. This resulted in the injection failure and subsequently caused the crash.
When the game started, the MixinProcessor tried to apply various mod mixins.
When processing the HungerManagerMixin of the puffish_attributes mod, since the target method tick had been merged by other mods with a higher priority, an InvalidInjectionException was thrown.
This exception was not properly handled in the MixinProcessor and propagated upwards, ultimately leading to the game crash.