From c16649f6913c4238618ecd68e8c4e764db643c8b Mon Sep 17 00:00:00 2001 From: Juraj Hrivnak Date: Fri, 23 Feb 2024 14:30:52 +0100 Subject: [PATCH] Fix wrong project side detection --- build.gradle.kts | 2 +- .../kotlin/teksturepako/pakku/api/platforms/Modrinth.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c82c03ea..f31ff56e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ plugins { } group = "teksturepako.pakku" -version = "0.0.12" +version = "0.0.13" repositories { mavenCentral() diff --git a/src/commonMain/kotlin/teksturepako/pakku/api/platforms/Modrinth.kt b/src/commonMain/kotlin/teksturepako/pakku/api/platforms/Modrinth.kt index fe8cd212..27d6e998 100644 --- a/src/commonMain/kotlin/teksturepako/pakku/api/platforms/Modrinth.kt +++ b/src/commonMain/kotlin/teksturepako/pakku/api/platforms/Modrinth.kt @@ -82,8 +82,8 @@ object Modrinth : Platform( side = when { serverSide == "required" && clientSide == "required" -> ProjectSide.BOTH - serverSide != "required" && clientSide == "required" -> ProjectSide.SERVER - serverSide == "required" && clientSide != "required" -> ProjectSide.CLIENT + serverSide != "required" && clientSide == "required" -> ProjectSide.CLIENT + serverSide == "required" && clientSide != "required" -> ProjectSide.SERVER else -> ProjectSide.BOTH }, id = mutableMapOf(serialName to id),