Skip to content

Commit 16fcad6

Browse files
committed
Configure Modrinth Environment where applicable
1 parent 24deec9 commit 16fcad6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

fabric/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import me.modmuss50.mpp.platforms.modrinth.ModrinthEnvironment
12
import xyz.jpenilla.resourcefactory.fabric.Environment
23

34
plugins {
@@ -69,6 +70,7 @@ fabricModJson {
6970
}
7071

7172
publishMods.modrinth {
73+
environment = ModrinthEnvironment.SERVER_ONLY_CLIENT_OPTIONAL
7274
minecraftVersions.add(libs.versions.minecraft)
7375
modLoaders.add("fabric")
7476
requires("fabric-api")

neoforge/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import me.modmuss50.mpp.platforms.modrinth.ModrinthEnvironment
12
import net.neoforged.moddevgradle.internal.RunGameTask
23

34
plugins {
@@ -97,6 +98,7 @@ neoForgeModsToml {
9798
}
9899

99100
publishMods.modrinth {
101+
environment = ModrinthEnvironment.SERVER_ONLY_CLIENT_OPTIONAL
100102
minecraftVersions.add(libs.versions.minecraft)
101103
modLoaders.add("neoforge")
102104
}

0 commit comments

Comments
 (0)