Merge remote-tracking branch 'origin/main'

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

View File

@ -87,6 +87,12 @@ public class ResourcePackHeaderDiff {
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");
}
}
}
/**