Prevent Java versions from including unknown
All checks were successful
Deploy API / docker (17, 3.8.5) (push) Successful in 1m44s
All checks were successful
Deploy API / docker (17, 3.8.5) (push) Successful in 1m44s
This commit is contained in:
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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user