修复a10的能量问题
This commit is contained in:
parent
570cd27027
commit
eee283fac7
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ public class A10Entity extends ContainerMobileVehicleEntity implements GeoEntity
|
||||||
this.entityData.set(POWER, this.entityData.get(POWER) * 0.99f);
|
this.entityData.set(POWER, this.entityData.get(POWER) * 0.99f);
|
||||||
this.entityData.set(DELTA_ROT, this.entityData.get(DELTA_ROT) * 0.95f);
|
this.entityData.set(DELTA_ROT, this.entityData.get(DELTA_ROT) * 0.95f);
|
||||||
|
|
||||||
if (getEnergy() > 0) {
|
if (getEnergy() > 0 && !this.level().isClientSide) {
|
||||||
this.consumeEnergy((int) (Mth.abs(this.entityData.get(POWER)) * VehicleConfig.A_10_MAX_ENERGY_COST.get()));
|
this.consumeEnergy((int) (Mth.abs(this.entityData.get(POWER)) * VehicleConfig.A_10_MAX_ENERGY_COST.get()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue