Always render nametag
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user