Skip to content

Commit f1db1e1

Browse files
committed
del FontRendererMixin.java :(
1 parent f4c0abb commit f1db1e1

3 files changed

Lines changed: 36 additions & 38 deletions

File tree

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
package dev.emi.emi.mixin.early.minecraft.client;
2-
3-
import com.rewindmc.retroemi.REMIMixinHooks;
4-
import net.minecraft.client.gui.FontRenderer;
5-
import org.objectweb.asm.Opcodes;
6-
import org.spongepowered.asm.mixin.Mixin;
7-
import org.spongepowered.asm.mixin.Shadow;
8-
import org.spongepowered.asm.mixin.injection.At;
9-
import org.spongepowered.asm.mixin.injection.Inject;
10-
import org.spongepowered.asm.mixin.injection.ModifyVariable;
11-
import org.spongepowered.asm.mixin.injection.Slice;
12-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
13-
14-
@Mixin(value = FontRenderer.class, priority = 2000)
15-
public abstract class FontRendererMixin {
16-
17-
@Shadow protected byte[] glyphWidth;
18-
19-
// @ModifyVariable(
20-
// method = "renderStringAtPos",
21-
// at = @At(
22-
// value = "JUMP",
23-
// opcode = Opcodes.GOTO,
24-
// ordinal = 0
25-
// ),
26-
// ordinal = 0 // i
27-
// )
28-
// private int customFontColor(int original, String text, boolean shadow) {
29-
// return REMIMixinHooks.applyCustomFormatCodes((FontRenderer) (Object) this, text, shadow, original);
1+
//package dev.emi.emi.mixin.early.minecraft.client;
2+
//
3+
//import com.rewindmc.retroemi.REMIMixinHooks;
4+
//import net.minecraft.client.gui.FontRenderer;
5+
//import org.objectweb.asm.Opcodes;
6+
//import org.spongepowered.asm.mixin.Mixin;
7+
//import org.spongepowered.asm.mixin.Shadow;
8+
//import org.spongepowered.asm.mixin.injection.At;
9+
//import org.spongepowered.asm.mixin.injection.Inject;
10+
//import org.spongepowered.asm.mixin.injection.ModifyVariable;
11+
//import org.spongepowered.asm.mixin.injection.Slice;
12+
//import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
13+
//
14+
//@Mixin(value = FontRenderer.class, priority = 2000)
15+
//public abstract class FontRendererMixin {
16+
//
17+
// @Shadow protected byte[] glyphWidth;
18+
//
19+
//// @ModifyVariable(
20+
//// method = "renderStringAtPos",
21+
//// at = @At(
22+
//// value = "JUMP",
23+
//// opcode = Opcodes.GOTO,
24+
//// ordinal = 0
25+
//// ),
26+
//// ordinal = 0 // i
27+
//// )
28+
//// private int customFontColor(int original, String text, boolean shadow) {
29+
//// return REMIMixinHooks.applyCustomFormatCodes((FontRenderer) (Object) this, text, shadow, original);
30+
//// }
31+
//
32+
// // fix vanilla bug
33+
// @Inject(method = "readGlyphSizes", at = @At(value = "INVOKE", target = "Ljava/io/InputStream;read([B)I", shift = At.Shift.AFTER))
34+
// private void fixBrackets(CallbackInfo ci) {
35+
// this.glyphWidth['('] = 127;
3036
// }
31-
32-
// fix vanilla bug
33-
@Inject(method = "readGlyphSizes", at = @At(value = "INVOKE", target = "Ljava/io/InputStream;read([B)I", shift = At.Shift.AFTER))
34-
private void fixBrackets(CallbackInfo ci) {
35-
this.glyphWidth['('] = 127;
36-
}
37-
}
37+
//}

src/main/resources/mixins.emi.early.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"minecraft.network.NetHandlerPlayServerMixin"
1313
],
1414
"client": [
15-
"minecraft.client.FontRendererMixin",
1615
"minecraft.client.GuiContainerCreativeMixin",
1716
"minecraft.client.GuiContainerMixin",
1817
"minecraft.client.InventoryEffectRendererMixin",

src/main/resources/mixins.emi.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"client": [
2525
"accessor.GuiContainerAccessor",
2626
"accessor.GuiTextFieldAccessor",
27-
"early.minecraft.client.FontRendererMixin",
2827
"early.minecraft.client.GuiContainerCreativeMixin",
2928
"early.minecraft.client.GuiContainerMixin",
3029
"early.minecraft.client.InventoryEffectRendererMixin",

0 commit comments

Comments
 (0)