diff --git a/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java b/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java index 8682a9b31..ff7886197 100644 --- a/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java +++ b/src/main/java/us/myles/ViaVersion/api/ViaVersionConfig.java @@ -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(); } diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java index 945229723..414c00813 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/packets/EntityPackets.java @@ -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); } }