Fix awarding android stats for using exopack energy
This commit is contained in:
parent
a71cab3564
commit
dfb07cc9c5
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user