From 5f7d20b32bba707b687075bc1e716fbb0a9be677 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Mon, 17 Oct 2022 13:41:35 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=B5=20=D0=BD=D1=83=D0=B6=D0=BD=D1=8B?= =?UTF-8?q?=20=D0=BD=D0=B0=D0=BC=20=D0=B2=D0=B0=D1=88=D0=B8=20=D1=8D=D1=82?= =?UTF-8?q?=D0=B8=20=D1=87=D0=B0=D1=81=D1=82=D0=B8=D1=86=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ru/dbotthepony/mc/otm/android/feature/NightVisionFeature.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NightVisionFeature.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NightVisionFeature.kt index 4ac77be6b..4eeed3849 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NightVisionFeature.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/android/feature/NightVisionFeature.kt @@ -19,7 +19,7 @@ class NightVisionFeature(android: MatteryPlayerCapability) : AndroidSwitchableFe val effect = android.ply.activeEffectsMap[MobEffects.NIGHT_VISION] if ((effect == null || effect.duration < 220) && (ply.isSpectator || android.androidEnergy.extractEnergyInnerExact(ServerConfig.NIGHT_VISION_POWER_DRAW, true).isPositive)) { - android.ply.addEffect(MobEffectInstance(MobEffects.NIGHT_VISION, 220)) + android.ply.addEffect(MobEffectInstance(MobEffects.NIGHT_VISION, 220, 0, false, false)) if (!ply.isSpectator) { android.androidEnergy.extractEnergyInner(ServerConfig.NIGHT_VISION_POWER_DRAW, false)