From a926a014c31699f0921ab720dda7a3e192a6028e Mon Sep 17 00:00:00 2001 From: Light_Quanta Date: Thu, 10 Apr 2025 14:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=89=E6=A3=B1=E5=9D=A6?= =?UTF-8?q?=E5=85=8B=E7=94=B5=E9=87=8F=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../atsuishio/superbwarfare/entity/vehicle/PrismTankEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/PrismTankEntity.java b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/PrismTankEntity.java index c3aa96fc9..70487d758 100644 --- a/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/PrismTankEntity.java +++ b/src/main/java/com/atsuishio/superbwarfare/entity/vehicle/PrismTankEntity.java @@ -720,7 +720,7 @@ public class PrismTankEntity extends ContainerMobileVehicleEntity implements Geo public int getAmmoCount(Player player) { var cap = this.getCapability(Capabilities.EnergyStorage.ENTITY, null); if (cap == null) return 0; - return (int) (cap.getEnergyStored() / 100f / this.getMaxEnergy()); + return (int) (cap.getEnergyStored() * 100f / this.getMaxEnergy()); } @Override