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(" ");
|
StringBuilder stringBuilder = new StringBuilder(" ");
|
||||||
for (KitType kitType : KitType.values())
|
for (KitType kitType : KitType.values())
|
||||||
{
|
{
|
||||||
ItemDefinition itemComposition =
|
if (kitType == KitType.RING || kitType == KitType.AMMUNITION)
|
||||||
itemManager.getItemDefinition(actor.getPlayerAppearance().getEquipmentId(kitType));
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
ItemDefinition itemComposition = itemManager.getItemDefinition(actor.getPlayerAppearance().getEquipmentId(kitType));
|
||||||
if (itemComposition != null && itemComposition.getName() != null)
|
if (itemComposition != null && itemComposition.getName() != null)
|
||||||
{
|
{
|
||||||
totalValue = totalValue + itemComposition.getPrice();
|
totalValue = totalValue + itemComposition.getPrice();
|
||||||
|
|||||||
Reference in New Issue
Block a user