Skip to content

Commit

Permalink
more detections; fix duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo0001 committed Jan 2, 2025
1 parent 40f987d commit 8ec9a2d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,26 @@ export async function analyze(data) {
}, {
string: " [Netty epoll Worker #1/INFO] [limboapi]:",
solution: "limbo_warn"
}, {
string: "java.lang.NullPointerException: null\n" +
" at com.viaversion.viaversion.bukkit.providers.BukkitViaMovementTransmitter.sendPlayer",
solution: "viaversion_outdated"
}, {
string: "for ViaVersion v5.2.0 generated an exception",
solution: "viaversion_outdated"
}, {
string: "com.viaversion.viaversion.rewriter.EntityRewriter.handleEntityData",
solution: "invalid_entity"
}];


let detections = [];
let tags = [];
for (const error of errors) {
if (data.indexOf(error.string) !== -1) {
if (tags.indexOf(error.solution) !== -1) {//avoid duplicates
continue;
}
tags.push(error.solution);
solutions[error.solution].tag = error.solution;
detections.push(solutions[error.solution]);
Expand Down

0 comments on commit 8ec9a2d

Please sign in to comment.