Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 31, 2024
2 parents 03961d4 + f17c854 commit d6dc005
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ class MappingsProvider(project: Project, minecraft: MinecraftConfig, subKey: Str

override fun calamus(key: String, action: MappingEntry.() -> Unit) {
unimined.ornitheMaven()
val environment = when (envType) {
EnvType.CLIENT -> "-client"
EnvType.SERVER -> "-server"
EnvType.JOINED -> ""
val environment = if (minecraft.minecraftData.mcVersionCompare(minecraft.version, "1.3") < 0) {
when (envType) {
EnvType.CLIENT -> "-client"
EnvType.SERVER -> "-server"
else -> throw IllegalStateException("Cannot use calamus with side COMBINED")
}
} else {
""
}
addDependency(key, MappingEntry(
contentOf(ornitheGenRevisionTransform(
Expand Down

0 comments on commit d6dc005

Please sign in to comment.