Skip to content

Commit

Permalink
Fixed placeholders not using toNiceString
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jun 3, 2023
1 parent cd12cb6 commit e7a5ae9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.willfp.eco.core.placeholder.context.PlaceholderContext
import com.willfp.eco.core.registry.KRegistrable
import com.willfp.eco.util.evaluateExpression
import com.willfp.eco.util.formatEco
import com.willfp.eco.util.toNiceString

abstract class CustomPlaceholder(
override val id: String
Expand All @@ -18,7 +19,7 @@ abstract class CustomPlaceholder(
)

return if (asNumber != 0.0) {
asNumber.toString()
asNumber.toNiceString()
} else {
expression.formatEco(ctx)
}
Expand Down

0 comments on commit e7a5ae9

Please sign in to comment.