Skip to content

Commit

Permalink
Update ModAdvancement.kt
Browse files Browse the repository at this point in the history
+ Lazy things.
  • Loading branch information
EngineMachiner committed Aug 4, 2024
1 parent ff5d53c commit c75305b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class ModAdvancement : ModID {
open val parent: ModAdvancement? = null


abstract val key: String
open val key: String = lazy { name }.value

open fun title(): Text { return Translation.Advancement.title(key) }
open fun description(): Text { return Translation.Advancement.description(key) }
Expand Down

0 comments on commit c75305b

Please sign in to comment.