From 3780e53c5da9499987357130034f04001d1142b1 Mon Sep 17 00:00:00 2001 From: Caedis Date: Sun, 12 Jan 2025 22:22:21 +0000 Subject: [PATCH] forgot to null check last pr (#6) --- src/main/java/GTNHNightlyUpdater/Updater.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/GTNHNightlyUpdater/Updater.java b/src/main/java/GTNHNightlyUpdater/Updater.java index 7bc8ad1..d40174b 100644 --- a/src/main/java/GTNHNightlyUpdater/Updater.java +++ b/src/main/java/GTNHNightlyUpdater/Updater.java @@ -99,7 +99,7 @@ void updateModpackMods(Assets.Asset assets, Path modCacheDir, Set modExc if (packMods.containsKey(modVersionToUse.filename().toLowerCase())) { continue; } - if (packMods.containsKey(modVersionToUse.mavenFilename().toLowerCase())) { + if (modVersionToUse.mavenFilename() != null && packMods.containsKey(modVersionToUse.mavenFilename().toLowerCase())) { continue; } @@ -249,7 +249,7 @@ void cacheMods(Assets.Asset asset, Path modCacheDir) throws IOException, Interru } } - if (Files.exists(modCacheDir.resolve(modVersionToUse.filename())) || Files.exists(modCacheDir.resolve(modVersionToUse.mavenFilename()))) { + if (Files.exists(modCacheDir.resolve(modVersionToUse.filename())) || (modVersionToUse.mavenFilename() != null && Files.exists(modCacheDir.resolve(modVersionToUse.mavenFilename())))) { continue; }