Skip to content

Conversation

@awruff
Copy link
Member

@awruff awruff commented Nov 4, 2025

Description

Adds a constant to KotlinLanguageAdapter that'll allow you to easily reference the adapter in your Mod annotation.

// BEFORE
@Mod(
    modid = MyMod.ID,
    modLanguageAdapter = "org.polyfrost.oneconfig.utils.v1.forge.KotlinLanguageAdapter"
)

// AFTER
@Mod(
    modid = MyMod.ID,
    modLanguageAdapter = KotlinLanguageAdapter.ADAPTER
)

This allows mod devs to avoid needing to remember the class name. It also reduces the chance of typos

Related Issue(s)

N/A

Checklist

  • I made a clear description of what was changed
  • I stated why these changes were necessary
  • I updated documentation or said what needs to be updated
  • I made sure these changes are backwards compatible
  • This pull request is for one feature/bug fix

@Wyvest Wyvest merged commit eb7f8e4 into Polyfrost:v1 Nov 4, 2025
1 check failed
@github-project-automation github-project-automation bot moved this to Done in OneConfig Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants