playerindicators: handle ring/ammunition slots correctly (#1082)

This commit is contained in:
Chris Johnson
2019-07-22 12:28:07 -04:00
committed by ThatGamerBlue
parent 2716be51d9
commit f1d568aff2

View File

@@ -186,8 +186,12 @@ public class PlayerIndicatorsOverlay extends Overlay
StringBuilder stringBuilder = new StringBuilder(" ");
for (KitType kitType : KitType.values())
{
ItemDefinition itemComposition =
itemManager.getItemDefinition(actor.getPlayerAppearance().getEquipmentId(kitType));
if (kitType == KitType.RING || kitType == KitType.AMMUNITION)
{
continue;
}
ItemDefinition itemComposition = itemManager.getItemDefinition(actor.getPlayerAppearance().getEquipmentId(kitType));
if (itemComposition != null && itemComposition.getName() != null)
{
totalValue = totalValue + itemComposition.getPrice();