Skip to content

Commit

Permalink
lazy evaluate configuration first
Browse files Browse the repository at this point in the history
  • Loading branch information
kikelkik committed Feb 7, 2023
1 parent f6db5e2 commit 2866b50
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ private void processVote(PlayerVotes pv, VoteStreak voteStreak, Vote vote, boole
throw new RuntimeException("No vote rewards found for '" + vote + "'");
}

if (pv.getLastVote() != null
&& DateUtils.isSameDay(pv.getLastVote(), vote.getReceived())
&& SuperbVote.getPlugin().getConfig().getBoolean("votes.one-vote-per-day")) {
if (SuperbVote.getPlugin().getConfig().getBoolean("votes.one-vote-per-day")
&& pv.getLastVote() != null
&& DateUtils.isSameDay(pv.getLastVote(), vote.getReceived())) {

SuperbVote.getPlugin()
.getLogger()
Expand Down

0 comments on commit 2866b50

Please sign in to comment.