Skip to content

Commit

Permalink
We can do it this way.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianMichael committed Dec 27, 2023
1 parent 782864f commit 5ffe582
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5ffe582

Please sign in to comment.