Small changes for the new Config API

This commit is contained in:
Hugo Kerstens 2016-03-22 16:55:58 +01:00
parent 147891f76b
commit 523c27237d
2 changed files with 11 additions and 11 deletions

View File

@ -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();
}

View File

@ -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);
}
}