Always render nametag

This commit is contained in:
Brady
2023-06-27 23:47:24 -05:00
parent d24cd263bf
commit a3df7ebd4c

View File

@@ -78,6 +78,18 @@ public final class BotPlayer extends EntityPlayerSP {
return this.isUser;
}
@Override
public double getDistanceSq(@Nonnull Entity entityIn) {
if (entityIn == Minecraft.getMinecraft().getRenderViewEntity()) {
// Always render nametag in BotGuiInventory
return 0.0;
} else {
return super.getDistanceSq(entityIn);
}
}
@Override
public void sendStatusMessage(@Nonnull ITextComponent chatComponent, boolean actionBar) {
// TODO: Custom message handling