We can do it this way.

This commit is contained in:
FlorianMichael 2023-12-27 22:44:04 +01:00
parent 782864f385
commit 5ffe582802
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126

View File

@ -81,12 +81,9 @@ public class ResourcePackHeaderDiff {
}
/**
* Checks if {@link ProtocolHack#NATIVE_VERSION} is outdated and throws an exception if it is.
* Checks if the registry is outdated.
*/
public static void checkOutdated() {
if (!GAME_VERSION_DIFF.containsKey(ProtocolHack.NATIVE_VERSION)) {
throw new RuntimeException("The current version has no pack format registered");
}
for (VersionEnum version : VersionEnum.OFFICIAL_SUPPORTED_PROTOCOLS) {
if (version.getProtocol().isSnapshot()) continue;
if (!GAME_VERSION_DIFF.containsKey(version)) {