Skip to content

Commit fa2c4a3

Browse files
committed
Greatly increased niceness with a blazing new feature!
1 parent 228c11c commit fa2c4a3

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

src/main/java/coreforge/nice/mixin/DrawerMixin.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@Mixin(targets = "net.minecraft.client.font.TextRenderer$Drawer")
1313
public class DrawerMixin {
1414
int lastChar;
15-
15+
int secondLastChar;
1616
@Shadow
1717
public boolean accept(int i, Style style, int j){ throw new RuntimeException();}
1818
/*@ModifyArg(method = "accept",at = @At(value = "INVOKE",target = "Lnet/minecraft/client/font/FontStorage;getGlyphRenderer(I)Lnet/minecraft/client/font/GlyphRenderer;"),index = 0)
@@ -32,6 +32,22 @@ public void theNiceMethod(int i, Style style, int j, CallbackInfoReturnable<Bool
3232
accept(i,style,'e');
3333
accept(i,style,')');
3434
}
35+
36+
if(secondLastChar == '4' && lastChar == '2' && j == '0'){
37+
38+
accept(i,style,' ');
39+
accept(i,style,'B');
40+
accept(i,style,'l');
41+
accept(i,style,'a');
42+
accept(i,style,'z');
43+
accept(i,style,'e');
44+
accept(i,style,' ');
45+
accept(i,style,'I');
46+
accept(i,style,'t');
47+
accept(i,style,'!');
48+
accept(i,style,' ');
49+
}
50+
secondLastChar = lastChar;
3551
lastChar = j;
3652
}
3753
}

0 commit comments

Comments
 (0)