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)