commit ef3a2d065d074c5e7f4a8337e0fb0e5741d2b0d1
parent 7a56628e6a760dee6e2e0a6ace7c2552378e5f97
Author: Wim Dupont <wim@wimdupont.com>
Date: Mon, 23 May 2022 19:31:41 +0200
fix snapshot when player not found
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/main/java/com/sxcy/sxcybot/services/PvMRoleResolver.java b/src/main/java/com/sxcy/sxcybot/services/PvMRoleResolver.java
@@ -63,6 +63,7 @@ public class PvMRoleResolver {
pvmKcSnapshots.add(pvmRoleSnapshotComparatorService.takeSnapshot(textChannel, pvmRoleUser, false, persist));
} catch (EntityNotFoundException e) {
textChannel.sendMessage(e.getMessage()).queue();
+ continue;
}
pvmRoleSnapshotComparatorService.updateScoreboard(pvmRoleUser, scoreBoard, persist ? null : pvmKcSnapshots);
}