We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2158be4 commit d87fcc9Copy full SHA for d87fcc9
eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/math/DelegatedExpressionHandler.kt
@@ -12,7 +12,8 @@ class DelegatedExpressionHandler(
12
) : ExpressionHandler {
13
private val evaluationCache: Cache<Int, Double?> = Caffeine.newBuilder()
14
.expireAfterWrite(plugin.configYml.getInt("math-cache-ttl").toLong(), TimeUnit.MILLISECONDS)
15
- .build()
+ .buildAsync<Int, Double?>()
16
+ .synchronous()
17
18
override fun evaluate(expression: String, context: PlaceholderContext): Double? {
19
expression.fastToDoubleOrNull()?.let { return it }
0 commit comments