Skip to content

Commit

Permalink
subscribe on client only
Browse files Browse the repository at this point in the history
  • Loading branch information
bazke committed Oct 30, 2023
1 parent b6feec8 commit ccc9bd1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@
import net.minecraft.commands.Commands;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.player.Player;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.client.event.RenderNameTagEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

import static com.mojang.brigadier.arguments.BoolArgumentType.bool;
import static net.minecraft.commands.Commands.literal;

@Mod.EventBusSubscriber(modid = LTExtras.MODID)
@Mod.EventBusSubscriber(modid = LTExtras.MODID, value = Dist .CLIENT)
public class RenderPlayerNameTagCommand {
private static boolean alwaysRenderNameTags = false;

Expand Down

0 comments on commit ccc9bd1

Please sign in to comment.