From b7612bf808ecb21cb1ce885e120b527d50d021e9 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Fri, 8 Dec 2023 14:26:08 +0100 Subject: [PATCH] [POST] remove sanity check because VFP supports to load on multiple versions at the moment --- .../viafabricplus/fixes/data/ResourcePackHeaderDiff.java | 6 ------ 1 file changed, 6 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 9afeb1c0..1eef5cff 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,6 @@ public class ResourcePackHeaderDiff { if (!GAME_VERSION_DIFF.containsKey(ProtocolHack.NATIVE_VERSION)) { throw new RuntimeException("The current version has no pack format registered"); } - - final GameVersion gameVersion = GAME_VERSION_DIFF.get(ProtocolHack.NATIVE_VERSION); - if (!gameVersion.getName().equals(SharedConstants.getGameVersion().getName()) || !gameVersion.getId().equals(SharedConstants.getGameVersion().getId()) || - gameVersion.getResourceVersion(ResourceType.CLIENT_RESOURCES) != SharedConstants.getGameVersion().getResourceVersion(ResourceType.CLIENT_RESOURCES)) { - throw new RuntimeException("The current version is outdated, please update to " + gameVersion.getName() + " (" + gameVersion.getId() + ")"); - } } public static GameVersion get(final VersionEnum version) {