Skip to content

Commit

Permalink
Don't assume on-time delivery when timestamp isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jun 6, 2024
1 parent 8f6c3ca commit 6356e1f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,14 @@ boolean isDeliveryTooLate(final Player player, String questSlot) {
+ (long) 60 * 1000 * customerData.getExpectedMinutes();
if (System.currentTimeMillis() > expectedTimeOfDelivery) {
return true;
} else {
return false;
}
}
} catch (final NumberFormatException | ArrayIndexOutOfBoundsException e) {
logger.error(e);
}
return false;
return true;
}

/** Takes away the player's uniform, if the he is wearing it.
Expand Down

0 comments on commit 6356e1f

Please sign in to comment.