From 59d90e59fbec2746c16405e01b8a41d251dacf96 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 9 Nov 2017 14:18:44 +0000 Subject: [PATCH] Fix the amount in gem data not being displayed --- .../modules/gamesummary/components/GemSummaryComponent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/gamesummary/components/GemSummaryComponent.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/gamesummary/components/GemSummaryComponent.java index c951a1e71..047f815d9 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/gamesummary/components/GemSummaryComponent.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/modules/gamesummary/components/GemSummaryComponent.java @@ -43,7 +43,7 @@ public class GemSummaryComponent extends GameSummaryComponent text = new ArrayList<>(); - data.forEach((reason, gemData) -> text.add(C.cGray + "+" + _colour + (int) gemData.Gems + C.cGray + " for " + C.cYellow + reason)); + data.forEach((reason, gemData) -> text.add(C.cGray + "+" + _colour + (int) gemData.Gems + C.cGray + " for " + C.cYellow + (gemData.Amount > 0 ? gemData.Amount + " " : "") + reason)); return text; }