mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-13 10:54:31 +01:00
Add EntityRewriterBase#getDisplayVisibilityMetaValue (#725)
This commit is contained in:
parent
ab11527c86
commit
c4c15fb047
@ -105,10 +105,14 @@ public abstract class EntityRewriterBase<C extends ClientboundPacketType, T exte
|
||||
private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
|
||||
if (alwaysShowOriginalMobName()) {
|
||||
removeMeta(displayVisibilityIndex, metadataList);
|
||||
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, true));
|
||||
metadataList.add(new Metadata(displayVisibilityIndex, displayVisibilityMetaType, getDisplayVisibilityMetaValue()));
|
||||
}
|
||||
}
|
||||
|
||||
protected Object getDisplayVisibilityMetaValue() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean alwaysShowOriginalMobName() {
|
||||
return ViaBackwards.getConfig().alwaysShowOriginalMobName();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user