From 5ffe582802f55ec9a905908f654734cd91789753 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Wed, 27 Dec 2023 22:44:04 +0100 Subject: [PATCH] We can do it this way. --- .../viafabricplus/fixes/data/ResourcePackHeaderDiff.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/fixes/data/ResourcePackHeaderDiff.java b/src/main/java/de/florianmichael/viafabricplus/fixes/data/ResourcePackHeaderDiff.java index 127342ffa..9de936104 100644 --- a/src/main/java/de/florianmichael/viafabricplus/fixes/data/ResourcePackHeaderDiff.java +++ b/src/main/java/de/florianmichael/viafabricplus/fixes/data/ResourcePackHeaderDiff.java @@ -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)) {