From 55830b0dfb902d50b722ae4495bfa33704c9fd13 Mon Sep 17 00:00:00 2001 From: Matsv Date: Tue, 29 Mar 2016 16:00:56 +0200 Subject: [PATCH] Show all errors on debug --- .../protocols/protocol1_9to1_8/metadata/MetadataRewriter.java | 2 +- .../protocols/protocol1_9to1_8/packets/EntityPackets.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetadataRewriter.java b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetadataRewriter.java index e502c713a..a73c95927 100644 --- a/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetadataRewriter.java +++ b/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/metadata/MetadataRewriter.java @@ -141,7 +141,7 @@ public class MetadataRewriter { } } catch (Exception e) { list.remove(entry); - if (!((ViaVersionPlugin) ViaVersion.getInstance()).isSuppressMetadataErrors()) { + if (!ViaVersion.getConfig().isSuppressMetadataErrors() || ViaVersion.getInstance().isDebug()) { System.out.println("INCLUDE THIS IN YOUR ERROR LOG!"); if (type != null) System.out.println("An error occurred with entity meta data for " + type + " OldID: " + entry.getId()); 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 4ac846a30..4e79158d2 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 @@ -184,7 +184,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 (!ViaVersion.getConfig().isUnknownEntitiesSuppressed()) { + } else if (!ViaVersion.getConfig().isUnknownEntitiesSuppressed() || ViaVersion.getInstance().isDebug()) { System.out.println("Unable to find entity for metadata, entity ID: " + entityID); metadataList.clear(); }