diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/energy/BatteryBackedEnergyStorage.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/energy/BatteryBackedEnergyStorage.kt index 9740cedf2..a04a14b70 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/energy/BatteryBackedEnergyStorage.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/energy/BatteryBackedEnergyStorage.kt @@ -98,7 +98,7 @@ class BatteryBackedEnergyStorage( howMuch -= extracted if (howMuch.isZero) { - if (!simulate && ply is ServerPlayer) { + if (!simulate && ply is ServerPlayer && isAndroid) { ply.awardStat(StatNames.POWER_CONSUMED, drained.toInt() * 10) } @@ -113,7 +113,7 @@ class BatteryBackedEnergyStorage( if (!simulate) { battery = new - if (ply is ServerPlayer) { + if (ply is ServerPlayer && isAndroid) { ply.awardStat(StatNames.POWER_CONSUMED, drained.toInt() * 10) } }