Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-09-08 22:02:50 +02:00
Shorten metadata error message
Dieser Commit ist enthalten in:
Ursprung
b5e5b46f77
Commit
15cbc96697
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren