mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-16 10:55:39 +01:00
Added sanity checks for ResourcePackHeaderDiff
This commit is contained in:
parent
bacbb076cc
commit
7da33b0fe6
@ -81,6 +81,11 @@ 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 (!GAME_VERSION_DIFF.containsKey(version)) {
|
||||
throw new RuntimeException("The version " + version + " has no pack format registered");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static GameVersion get(final VersionEnum version) {
|
||||
|
Loading…
Reference in New Issue
Block a user