Skip to content

Commit

Permalink
Stages are 0-indexed (for display, add 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyborger1 committed Jan 28, 2024
1 parent 35251fd commit b77a06e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ private SummaryInfo getInfoboxInfo()
switch (config.farmingContractInfoBoxStateText())
{
case GROWTH_STAGES:
shortDescription = manager.getContractCropStage() + "/" + contract.getStages();
// Stages are 0-indexed
shortDescription = (manager.getContractCropStage() + 1) + "/" + contract.getStages();
break;
case TIME_REMAINING:
int remainingMinutes = (int) ((remainingSeconds + 59) / 60);
Expand Down

0 comments on commit b77a06e

Please sign in to comment.