sxcybot

Discord bot for OSRS based channels
git clone git://git.wimdupont.com/sxcybot.git
Log | Files | Refs | README | LICENSE

commit 09d30aa67a3d9a4a4af233fa26222ac64591f3b5
parent 871018110252f76af75d524f72c77a7f70ffd620
Author: WimDupont <WimDupont@users.noreply.gitlab.com>
Date:   Mon,  3 Jan 2022 18:31:19 +0100

bugfix for "unused" pvmrole

Diffstat:
Msrc/main/java/com/sxcy/sxcybot/services/guild/pvmrole/impl/PvmRoleSnapshotComparatorServiceImpl.java | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/com/sxcy/sxcybot/services/guild/pvmrole/impl/PvmRoleSnapshotComparatorServiceImpl.java b/src/main/java/com/sxcy/sxcybot/services/guild/pvmrole/impl/PvmRoleSnapshotComparatorServiceImpl.java @@ -48,7 +48,7 @@ public class PvmRoleSnapshotComparatorServiceImpl implements PvmRoleSnapshotComp .reversed()) .limit(persisted ? 2 : 1) .collect(Collectors.toList()); - for (PvmRole pvmRole : PvmRole.values()) { + for (PvmRole pvmRole : scoreBoard.keySet()) { BigDecimal points1 = calculatePoints(pvmRole, persisted ? pvmKcSnapshots.get(0) : unpersistedSnapshots.get(0)); BigDecimal points2 = calculatePoints(pvmRole, pvmKcSnapshots.get(persisted ? 1 : 0)); BigDecimal result = points1.subtract(points2);