Skip to content

Commit

Permalink
exclude languageAdapters from fmj if it's empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Mar 23, 2024
1 parent 17a8810 commit 22f993d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ open class FabricModJson constructor(
val entrypoints = fmj.entrypoints.get().groupBy({ it.type.get() }) {
SerializableEntrypoint(it.adapter.orNull, it.value.get())
}
val languageAdapters = fmj.languageAdapters.get().toMap()
val languageAdapters = fmj.languageAdapters.nullIfEmpty()
val mixins = fmj.mixins.nullIfEmpty()?.map { SerializableMixinConfig(it.config.get(), it.environment.orNull) }
val accessWidener = fmj.accessWidener.orNull
val depends = fmj.depends.nullIfEmpty()
Expand Down

0 comments on commit 22f993d

Please sign in to comment.