Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-27 08:30:10 +01:00
Add EntityRewriterBase#getDisplayVisibilityMetaValue (#725)
Dieser Commit ist enthalten in:
Ursprung
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();
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren