Skip to content

Commit

Permalink
Update ModAdvancement.kt
Browse files Browse the repository at this point in the history
Just the naming.
  • Loading branch information
EngineMachiner committed Aug 4, 2024
1 parent c2d677f commit 610e46d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/com/enginemachiner/harmony/ModAdvancement.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ open class ModAdvancement(
fun announce(): ModAdvancement { announce = true; return this }
fun hidden(): ModAdvancement { hidden = true; return this }

fun build( consumer: Consumer<Advancement>, conditions: Conditions, name: String = this.name ) {
fun build( consumer: Consumer<Advancement>, conditions: Conditions, criterion: String = name ) {

val builder = Advancement.Builder.create()

if ( parent != null ) builder.parent(parent)

builder.display( icon, title, description, background, frame, toast, announce, hidden )
.criterion( name, conditions ).build( consumer, "$MOD_NAME/$name" )
.criterion( criterion, conditions ).build( consumer, "$MOD_NAME/$name" )

}

Expand Down

0 comments on commit 610e46d

Please sign in to comment.