mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-21 12:07:38 +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) {
|
private void addDisplayVisibilityMeta(List<Metadata> metadataList) {
|
||||||
if (alwaysShowOriginalMobName()) {
|
if (alwaysShowOriginalMobName()) {
|
||||||
removeMeta(displayVisibilityIndex, metadataList);
|
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() {
|
protected boolean alwaysShowOriginalMobName() {
|
||||||
return ViaBackwards.getConfig().alwaysShowOriginalMobName();
|
return ViaBackwards.getConfig().alwaysShowOriginalMobName();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user