Skip to content

Instantly share code, notes, and snippets.

@Fuzss
Created August 10, 2023 19:32
Show Gist options
  • Save Fuzss/6fe9b9f5dd0deb4e57c4aa4a3b76c81b to your computer and use it in GitHub Desktop.
Save Fuzss/6fe9b9f5dd0deb4e57c4aa4a3b76c81b to your computer and use it in GitHub Desktop.
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