From e8f8e13abed65454b11f223c5cb7786994ebfc5b Mon Sep 17 00:00:00 2001 From: Auxilor Date: Tue, 19 Apr 2022 11:15:59 +0100 Subject: [PATCH] Fixed dumb NPE --- .../src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt index fb03ef5..90c2074 100644 --- a/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt +++ b/eco-core/core-plugin/src/main/kotlin/com/willfp/boosters/BoostersPlugin.kt @@ -149,7 +149,7 @@ class BoostersPlugin : LibReforgePlugin(2036, 14269, "&e") { } ) - this.registerHolderProvider { ListUtils.toSingletonList(activeBooster?.booster as Holder) } + this.registerHolderProvider { ListUtils.toSingletonList(activeBooster?.booster as? Holder) } } override fun handleReloadAdditional() {