Colorful Hearts

Colorful Hearts

12M Downloads

loading ResourceLocation class early breaking mixins

Linguardium opened this issue ยท 1 comments

commented

https://github.com/Terrails/colorful-hearts/blob/86ca32195a683cb83fe58cadf3a75d4eaf19388b/fabric/src/main/java/terrails/colorfulhearts/fabric/FabMixinPlugin.java#L25C22
Loading your Logger reference here

will class load your main class,

public static final ResourceLocation SPRITE_NAME = new ResourceLocation(CColorfulHearts.MOD_ID, "colored_hearts");

which then loads ResourceLocation to set the static field. dont do this.

commented

Should be fixed now. Fetching the logger inside the plugin instead of using a reference from the main class.