Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 00:00:28 +01:00
Small changes for the new Config API
Dieser Commit ist enthalten in:
Ursprung
147891f76b
Commit
523c27237d
@ -12,23 +12,23 @@ public interface ViaVersionConfig {
|
||||
*/
|
||||
boolean isDebug();
|
||||
|
||||
public boolean isPreventCollision();
|
||||
boolean isPreventCollision();
|
||||
|
||||
public boolean isNewEffectIndicator();
|
||||
boolean isNewEffectIndicator();
|
||||
|
||||
public boolean isSuppressMetadataErrors();
|
||||
boolean isSuppressMetadataErrors();
|
||||
|
||||
public boolean isShieldBlocking();
|
||||
boolean isShieldBlocking();
|
||||
|
||||
public boolean isHologramPatch();
|
||||
boolean isHologramPatch();
|
||||
|
||||
public boolean isBossbarPatch();
|
||||
boolean isBossbarPatch();
|
||||
|
||||
public boolean isBossbarAntiflicker();
|
||||
boolean isBossbarAntiflicker();
|
||||
|
||||
public boolean isUnkownEntitiesSuppressed();
|
||||
boolean isUnkownEntitiesSuppressed();
|
||||
|
||||
public double getHologramYOffset();
|
||||
double getHologramYOffset();
|
||||
|
||||
public boolean isAutoTeam();
|
||||
boolean isAutoTeam();
|
||||
}
|
||||
|
@ -183,7 +183,7 @@ public class EntityPackets {
|
||||
EntityTracker tracker = wrapper.user().get(EntityTracker.class);
|
||||
if (tracker.getClientEntityTypes().containsKey(entityID)) {
|
||||
MetadataRewriter.transform(tracker.getClientEntityTypes().get(entityID), metadataList);
|
||||
} else if(!((ViaVersionPlugin)ViaVersion.getInstance()).getConfig().getBoolean("suppress-entityid-errors")){
|
||||
} else if(!ViaVersion.getConfig().isUnkownEntitiesSuppressed()){
|
||||
System.out.println("Unable to find entity for metadata, entity ID: " + entityID);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren