3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-03 14:50:30 +01:00

Shorten metadata error message

Dieser Commit ist enthalten in:
KennyTV 2021-06-09 18:59:48 +02:00
Ursprung b5e5b46f77
Commit 15cbc96697
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -470,13 +470,10 @@ public abstract class EntityRewriter<T extends Protocol> extends RewriterBase<T>
private void logException(Exception e, @Nullable EntityType type, List<Metadata> metadataList, Metadata metadata) { private void logException(Exception e, @Nullable EntityType type, List<Metadata> metadataList, Metadata metadata) {
if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) { if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) {
Logger logger = Via.getPlatform().getLogger(); Logger logger = Via.getPlatform().getLogger();
logger.warning("An error occurred with entity metadata handler"); logger.severe("An error occurred in metadata handler " + this.getClass().getSimpleName()
logger.warning("This is most likely down to one of your plugins sending bad datawatchers. Please test if this occurs without any plugins except ViaVersion before reporting it on GitHub"); + " for " + (type != null ? "untracked" : type.name()) + " entity type: " + metadata);
logger.warning("Also make sure that all your plugins are compatible with your server version."); logger.severe(metadataList.stream().sorted(Comparator.comparingInt(Metadata::id))
logger.warning("Entity type: " + type); .map(Metadata::toString).collect(Collectors.joining("\n", "Full metadata: ", "")));
logger.warning("Indexed meta: " + metadata);
logger.warning(metadataList.stream().sorted(Comparator.comparingInt(Metadata::id))
.map(Metadata::toString).collect(Collectors.joining("\n", "Metadata: ", "")));
e.printStackTrace(); e.printStackTrace();
} }
} }