repo for my hex addons :3
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

I do mot fear the man who speaks in hands

-27
-1
src/client/resources/mica.client.mixins.json
··· 11 11 "requireAnnotations": true 12 12 }, 13 13 "client": [ 14 - "TextRendererMixin", 15 14 "WorldRendererMixin" 16 15 ] 17 16 }
-26
src/client/scala/org/net/eu/pool/mica/mixin/client/TextRendererMixin.java
··· 1 - package org.net.eu.pool.mica.mixin.client; 2 - 3 - import net.minecraft.client.font.TextRenderer; 4 - import net.minecraft.client.render.VertexConsumerProvider; 5 - import net.minecraft.text.Text; 6 - import org.joml.Matrix4f; 7 - import org.spongepowered.asm.mixin.Mixin; 8 - import org.spongepowered.asm.mixin.injection.At; 9 - import org.spongepowered.asm.mixin.injection.Inject; 10 - import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; 11 - 12 - @Mixin(targets = "net.minecraft.client.font.TextRenderer") 13 - public class TextRendererMixin { 14 - @Inject(at = @At("HEAD"), method = "draw(Ljava/lang/String;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;II)V") 15 - void gaster(String text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, TextRenderer.TextLayerType layerType, int backgroundColor, int light, CallbackInfo ci) { 16 - if (text.toLowerCase().contains("gaster")) { 17 - Runtime.getRuntime().halt(101); 18 - } 19 - } 20 - @Inject(at = @At("HEAD"), method = "draw(Lnet/minecraft/text/Text;FFIZLorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider;Lnet/minecraft/client/font/TextRenderer$TextLayerType;II)V") 21 - void gaster(Text text, float x, float y, int color, boolean shadow, Matrix4f matrix, VertexConsumerProvider vertexConsumers, TextRenderer.TextLayerType layerType, int backgroundColor, int light, CallbackInfo ci) { 22 - if (text.getString().toLowerCase().contains("gaster")) { 23 - Runtime.getRuntime().halt(101); 24 - } 25 - } 26 - }