Added version check for neoforge filter
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
0406e168e7
commit
4ee6a6711d
@ -1018,8 +1018,8 @@ std::optional<ModPlatform::ModLoaderTypes> PackProfile::getSupportedModLoaders()
|
|||||||
// TODO: remove this or add version condition once Quilt drops official Fabric support
|
// TODO: remove this or add version condition once Quilt drops official Fabric support
|
||||||
if (loaders & ModPlatform::Quilt)
|
if (loaders & ModPlatform::Quilt)
|
||||||
loaders |= ModPlatform::Fabric;
|
loaders |= ModPlatform::Fabric;
|
||||||
// TODO: remove this or add version condition once NeoForge drops official Forge support
|
Version instance_ver{ getComponentVersion("net.minecraft") };
|
||||||
if (loaders & ModPlatform::NeoForge)
|
if (instance_ver <= Version("1.20.1") && loaders & ModPlatform::NeoForge)
|
||||||
loaders |= ModPlatform::Forge;
|
loaders |= ModPlatform::Forge;
|
||||||
return loaders;
|
return loaders;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user