From c573da6e31360e96e6c0e43a3df6cf5b4de71a7d Mon Sep 17 00:00:00 2001 From: Auxilor Date: Wed, 2 Mar 2022 18:51:07 +0000 Subject: [PATCH] Suppressed warning --- .../internal/spigot/proxy/common/fast/EcoFastItemStack.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eco-core/core-nms/nms-common/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/fast/EcoFastItemStack.kt b/eco-core/core-nms/nms-common/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/fast/EcoFastItemStack.kt index 5ec6f9e2..c29e3958 100644 --- a/eco-core/core-nms/nms-common/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/fast/EcoFastItemStack.kt +++ b/eco-core/core-nms/nms-common/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/common/fast/EcoFastItemStack.kt @@ -151,13 +151,14 @@ class EcoFastItemStack( return this.flagBits and bitModifier == bitModifier } + @Suppress("UNNECESSARY_NOT_NULL_ASSERTION") private var flagBits: Int get() = - if (handle.hasTag() && handle.getTag().contains( + if (handle.hasTag() && handle.getTag()!!.contains( "HideFlags", 99 ) - ) handle.getTag().getInt("HideFlags") else 0 + ) handle.getTag()!!.getInt("HideFlags") else 0 set(value) = handle.getOrCreateTag().putInt("HideFlags", value)