Skip to content

Commit

Permalink
Readded ResourcePackHeaderDiff sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphiMC committed Dec 27, 2023
1 parent be5a95b commit 3a87cc9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ 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)) {
throw new RuntimeException("The version " + version + " has no pack format registered");
}
}
}

/**
Expand Down

0 comments on commit 3a87cc9

Please sign in to comment.