diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/math/DelegatedExpressionHandler.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/math/DelegatedExpressionHandler.kt index 4470625b..da3eacdb 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/math/DelegatedExpressionHandler.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/eco/internal/spigot/math/DelegatedExpressionHandler.kt @@ -12,7 +12,8 @@ class DelegatedExpressionHandler( ) : ExpressionHandler { private val evaluationCache: Cache = Caffeine.newBuilder() .expireAfterWrite(plugin.configYml.getInt("math-cache-ttl").toLong(), TimeUnit.MILLISECONDS) - .build() + .buildAsync() + .synchronous() override fun evaluate(expression: String, context: PlaceholderContext): Double? { expression.fastToDoubleOrNull()?.let { return it }