playerindicators: handle ring/ammunition slots correctly (#1082)
This commit is contained in:
committed by
ThatGamerBlue
parent
2716be51d9
commit
f1d568aff2
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user