mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-02-28 03:41:21 +01:00
We can do it this way.
This commit is contained in:
parent
782864f385
commit
5ffe582802
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user