Prevent Java versions from including unknown
All checks were successful
Deploy API / docker (17, 3.8.5) (push) Successful in 1m44s

This commit is contained in:
Braydon 2024-04-22 15:36:45 -04:00
parent 4d575fdf2e
commit 345e1532a4

@ -180,6 +180,9 @@ public final class JavaMinecraftServer extends MinecraftServer {
}
}
JavaMinecraftVersion minecraftVersion = JavaMinecraftVersion.byProtocol(protocol);
if (minecraftVersion == JavaMinecraftVersion.UNKNOWN) {
minecraftVersion = null;
}
return new Version(name, platform, protocol, supportedVersions, minecraftVersion == null ? null : minecraftVersion.getName());
}
}