3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-26 00:00:28 +01:00

Show all errors on debug

Dieser Commit ist enthalten in:
Matsv 2016-03-29 16:00:56 +02:00
Ursprung e61f56b2e0
Commit 55830b0dfb
2 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -141,7 +141,7 @@ public class MetadataRewriter {
} }
} catch (Exception e) { } catch (Exception e) {
list.remove(entry); list.remove(entry);
if (!((ViaVersionPlugin) ViaVersion.getInstance()).isSuppressMetadataErrors()) { if (!ViaVersion.getConfig().isSuppressMetadataErrors() || ViaVersion.getInstance().isDebug()) {
System.out.println("INCLUDE THIS IN YOUR ERROR LOG!"); System.out.println("INCLUDE THIS IN YOUR ERROR LOG!");
if (type != null) if (type != null)
System.out.println("An error occurred with entity meta data for " + type + " OldID: " + entry.getId()); System.out.println("An error occurred with entity meta data for " + type + " OldID: " + entry.getId());

Datei anzeigen

@ -184,7 +184,7 @@ public class EntityPackets {
EntityTracker tracker = wrapper.user().get(EntityTracker.class); EntityTracker tracker = wrapper.user().get(EntityTracker.class);
if (tracker.getClientEntityTypes().containsKey(entityID)) { if (tracker.getClientEntityTypes().containsKey(entityID)) {
MetadataRewriter.transform(tracker.getClientEntityTypes().get(entityID), metadataList); 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); System.out.println("Unable to find entity for metadata, entity ID: " + entityID);
metadataList.clear(); metadataList.clear();
} }