Created
August 10, 2023 19:32
-
-
Save Fuzss/6fe9b9f5dd0deb4e57c4aa4a3b76c81b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import net.minecraft.client.renderer.Sheets; | |
import org.spongepowered.asm.mixin.Mixin; | |
import org.spongepowered.asm.mixin.injection.At; | |
import org.spongepowered.asm.mixin.injection.Inject; | |
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | |
@Mixin(Sheets.class) | |
abstract class SheetsFabricMixin { | |
@Inject(method = "<clinit>", at = @At("HEAD")) | |
private static void clinit(CallbackInfo callback) { | |
com.mojang.logging.LogUtils.getLogger().error( | |
"net.minecraft.client.renderer.Sheets loaded too early, modded registry-based materials may not work correctly", | |
new IllegalStateException("net.minecraft.client.renderer.Sheets loaded too early") | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment