diff options
4 files changed, 20 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();
+ }
+}
diff --git a/src/client/resources/molehunt.client.mixins.json b/src/client/resources/molehunt.client.mixins.json index c5eb170..2451258 100644 --- a/src/client/resources/molehunt.client.mixins.json +++ b/src/client/resources/molehunt.client.mixins.json @@ -5,6 +5,7 @@ "compatibilityLevel": "JAVA_21", "client": [ "NoNametags", + "NoPlayerListHud", "NoSkin" ], "injectors": { diff --git a/src/main/java/world/anhgelus/molehunt/Game.java b/src/main/java/world/anhgelus/molehunt/Game.java new file mode 100644 index 0000000..f084bfd --- /dev/null +++ b/src/main/java/world/anhgelus/molehunt/Game.java @@ -0,0 +1,2 @@ +package world.anhgelus.molehunt;public class Game { +} diff --git a/src/main/java/world/anhgelus/molehunt/utils/TimeUtils.java b/src/main/java/world/anhgelus/molehunt/utils/TimeUtils.java new file mode 100644 index 0000000..8db8eb0 --- /dev/null +++ b/src/main/java/world/anhgelus/molehunt/utils/TimeUtils.java @@ -0,0 +1,2 @@ +package world.anhgelus.molehunt.utils;public class TimeUtils { +} |
