Skip to content

Commit

Permalink
Allow placeholders in npc indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Jul 21, 2024
1 parent fe48b09 commit f90f3a6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import me.gabber235.typewriter.entry.entries.EntityData
import me.gabber235.typewriter.entry.entries.EntityDefinitionEntry
import me.gabber235.typewriter.entry.entries.LinesProperty
import me.gabber235.typewriter.entry.quest.trackedQuest
import me.gabber235.typewriter.extensions.placeholderapi.parsePlaceholders
import me.gabber235.typewriter.snippets.snippet
import me.gabber235.typewriter.utils.Sound
import org.bukkit.entity.Player
Expand Down Expand Up @@ -60,7 +61,7 @@ class InteractionIndicatorEntity(
}.toList()
if (objectives.isEmpty()) {
if (hasInteractionEntry()) {
return dialogueIndicator
return dialogueIndicator.parsePlaceholders(player)
}
return ""
}
Expand All @@ -72,7 +73,7 @@ class InteractionIndicatorEntity(
interactIndicator
}

return icon
return icon.parsePlaceholders(player)
}

private fun hasInteractionEntry(): Boolean {
Expand Down

0 comments on commit f90f3a6

Please sign in to comment.