修复1130没有能量条的bug
This commit is contained in:
parent
acb9ba48b3
commit
12b5fabca2
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package com.atsuishio.superbwarfare.client.overlay;
|
||||||
import com.atsuishio.superbwarfare.Mod;
|
import com.atsuishio.superbwarfare.Mod;
|
||||||
import com.atsuishio.superbwarfare.client.RenderHelper;
|
import com.atsuishio.superbwarfare.client.RenderHelper;
|
||||||
import com.atsuishio.superbwarfare.config.client.DisplayConfig;
|
import com.atsuishio.superbwarfare.config.client.DisplayConfig;
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.Hpj11Entity;
|
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.SpeedboatEntity;
|
import com.atsuishio.superbwarfare.entity.vehicle.SpeedboatEntity;
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.base.*;
|
import com.atsuishio.superbwarfare.entity.vehicle.base.*;
|
||||||
import com.atsuishio.superbwarfare.entity.vehicle.weapon.HeliRocketWeapon;
|
import com.atsuishio.superbwarfare.entity.vehicle.weapon.HeliRocketWeapon;
|
||||||
|
@ -104,7 +103,7 @@ public class VehicleHudOverlay implements LayeredDraw.Layer {
|
||||||
|
|
||||||
int compatHeight = getArmorPlateCompatHeight(player);
|
int compatHeight = getArmorPlateCompatHeight(player);
|
||||||
|
|
||||||
if (vehicle instanceof EnergyVehicleEntity energyVehicleEntity && !(vehicle instanceof Hpj11Entity)) {
|
if (vehicle instanceof EnergyVehicleEntity energyVehicleEntity) {
|
||||||
float energy = energyVehicleEntity.getEnergy();
|
float energy = energyVehicleEntity.getEnergy();
|
||||||
float maxEnergy = energyVehicleEntity.getMaxEnergy();
|
float maxEnergy = energyVehicleEntity.getMaxEnergy();
|
||||||
preciseBlit(guiGraphics, ENERGY, 10, h - 22 - compatHeight, 100, 0, 0, 8, 8, 8, 8);
|
preciseBlit(guiGraphics, ENERGY, 10, h - 22 - compatHeight, 100, 0, 0, 8, 8, 8, 8);
|
||||||
|
|
Loading…
Add table
Reference in a new issue