Skip to content

Commit

Permalink
Fix update converter
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed May 29, 2024
1 parent 1ffb3c0 commit e6ed63d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -672,13 +672,13 @@ public static void updateQuests(final Player player) {
// months) have passed
player.setQuest(questSlot, 1, Long.toString(System.currentTimeMillis()
- (TimeUtil.MINUTES_IN_HALF_YEAR / 2 * TimeUtil.MILLISECONDS_IN_MINUTE)));
}

// 1.47: support completions tracking
for (String slot: Arrays.asList("chocolate_for_elisabeth", "icecream_for_annie")) {
if (!player.hasQuest(slot)) {
continue;
}
final String[] state = player.getQuest(slot).split(";");
if ("eating".equals(player.getQuest(slot, 0)) && "".equals(player.getQuest(slot, 2))) {
player.setQuest(slot, 2, "1");
}
Expand Down

0 comments on commit e6ed63d

Please sign in to comment.