diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-21 23:29:47 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-08-21 23:29:47 +0000 |
| commit | e0a3392795c7abc0c1080d71b6c0d83c8de78a2d (patch) | |
| tree | f43776a2670c17ac23c6472e16fcffbdae881715 /src/client/java/world/anhgelus | |
| parent | 0c936086d74adc98c017747684a072022e502e88 (diff) | |
feat(player): disable tab
Diffstat (limited to 'src/client/java/world/anhgelus')
| -rw-r--r-- | src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java new file mode 100644 index 0000000..8ef33fd --- /dev/null +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoPlayerListHud.java @@ -0,0 +1,15 @@ +package world.anhgelus.molehunt.client.mixin;
+
+import net.minecraft.client.gui.hud.PlayerListHud;
+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(PlayerListHud.class)
+public class NoPlayerListHud {
+ @Inject(at = @At("HEAD"), method = "render", cancellable = true)
+ public void render(CallbackInfo ci) {
+ ci.cancel();
+ }
+}
|
