This commit is contained in:
kirillsaint 2023-09-30 15:22:26 +06:00
parent 319f7a32dd
commit 7a8fd25ba8

View File

@ -9,9 +9,7 @@ import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.ModifyVariable;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
@Mixin(value = FontRenderer.class, priority = 1100)
public abstract class FontRendererMixin implements FontRendererExt {
@ -48,14 +46,4 @@ public abstract class FontRendererMixin implements FontRendererExt {
protected abstract void resetStyles();
@Shadow @Final private ResourceLocation locationFontTexture;
@Inject(method = "drawString(Ljava/lang/String;FFIZ)I",
at = @At(
value = "INVOKE", target = "Lnet/minecraft/client/gui/FontRenderer;renderString(Ljava/lang/String;FFIZ)I",
ordinal = 0, shift = At.Shift.AFTER
)
)
private void silent$resetStyle(CallbackInfoReturnable<Integer> ci) {
this.resetStyles();
}
}