Skip to content

Commit

Permalink
[POST] remove sanity check because VFP supports to load on multiple v…
Browse files Browse the repository at this point in the history
…ersions at the moment
  • Loading branch information
FlorianMichael committed Dec 8, 2023
1 parent 3560129 commit b7612bf
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ public static void checkOutdated() {
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) {
Expand Down

0 comments on commit b7612bf

Please sign in to comment.