We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a0f254 commit d5976baCopy full SHA for d5976ba
src/main/kotlin/com/lambda/module/modules/render/NoRender.kt
@@ -177,10 +177,9 @@ object NoRender : Module(
177
178
@JvmStatic
179
fun shouldAcceptFog(modifier: StatusEffectFogModifier) =
180
- when {
181
- isDisabled -> true
182
- modifier.statusEffect == StatusEffects.BLINDNESS && noBlindness -> false
183
- modifier.statusEffect == StatusEffects.DARKNESS && noDarkness -> false
+ when (modifier.statusEffect) {
+ StatusEffects.BLINDNESS if (noBlindness && isEnabled) -> false
+ StatusEffects.DARKNESS if (noDarkness && isEnabled) -> false
184
else -> true
185
}
186
@@ -189,4 +188,4 @@ object NoRender : Module(
189
188
val remapped: String,
190
val displayName: String
191
)
192
-}
+}
0 commit comments