diff options
| author | Léo Kosman <leo.kosman@proton.me> | 2024-08-22 22:54:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-22 22:54:58 +0200 |
| commit | 4e286cb30e0b65c3f09763ad86e1b0d9dfd84d80 (patch) | |
| tree | 35ca90fb2604c7f81b72be2372c61be678b488ee /src/client/java/world/anhgelus | |
| parent | dc17a97ff6a6bab748d7bd3062481bb5dac6d85f (diff) | |
| parent | 7dc2ddcbb808d9dba78f806b0b1138cc9a9c8bbb (diff) | |
Merge branch 'main' into feat/hide-timer
Diffstat (limited to 'src/client/java/world/anhgelus')
| -rw-r--r-- | src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java b/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java index d7795dd..7996c49 100644 --- a/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java +++ b/src/client/java/world/anhgelus/molehunt/client/mixin/NoNametags.java @@ -11,11 +11,10 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(EntityRenderer.class)
-public abstract class NoNametags<T extends Entity> {
+public class NoNametags<T extends Entity> {
@Inject(at = @At("HEAD"), method = "render", cancellable = true)
private void renderLabelOrNot(T entity, float yaw, float tickDelta, MatrixStack matrices, VertexConsumerProvider vertexConsumers, int light, CallbackInfo ci) {
if (!(entity instanceof PlayerEntity)) return;
-
ci.cancel();
}
}
\ No newline at end of file |
