Skip to content

Commit

Permalink
Forgot to make updateField accessible...
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnemotechnician authored Sep 16, 2023
1 parent abe9cb6 commit e79a709
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/main/kotlin/extensions/elements/ElementExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import mindustry.gen.Groups.label
import java.awt.SystemColor.text

@PublishedApi
internal var updateField = Element::class.java.getField("update")
internal var updateField = Element::class.java.getField("update").also {
it.isAccessible = true
}

/** Text of the label */
inline var Label.content: CharSequence
Expand Down

0 comments on commit e79a709

Please sign in to comment.