Added version check for neoforge filter

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2023-09-25 23:04:21 +03:00
parent 0406e168e7
commit 4ee6a6711d
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -1018,8 +1018,8 @@ std::optional<ModPlatform::ModLoaderTypes> PackProfile::getSupportedModLoaders()
// TODO: remove this or add version condition once Quilt drops official Fabric support
if (loaders & ModPlatform::Quilt)
loaders |= ModPlatform::Fabric;
// TODO: remove this or add version condition once NeoForge drops official Forge support
if (loaders & ModPlatform::NeoForge)
Version instance_ver{ getComponentVersion("net.minecraft") };
if (instance_ver <= Version("1.20.1") && loaders & ModPlatform::NeoForge)
loaders |= ModPlatform::Forge;
return loaders;
}