Moved the creation of natives folder in ExtractNatives task

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit 8ecab305ac)
This commit is contained in:
Trial97
2024-04-04 13:49:27 +03:00
committed by github-actions[bot]
parent 1e5a29c423
commit 3e5e131a94
3 changed files with 12 additions and 27 deletions

View File

@ -79,6 +79,7 @@ void ExtractNatives::executeTask()
auto settings = minecraftInstance->settings();
auto outputPath = minecraftInstance->getNativePath();
FS::ensureFolderPathExists(outputPath);
auto javaVersion = minecraftInstance->getJavaVersion();
bool jniHackEnabled = javaVersion.major() >= 8;
for (const auto& source : toExtract) {