OneLiteFeatherNET / OneLiteFeatherNET/Voyager

bug: Lobby countdown displays wrong time — ticks vs seconds mismatch

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

alpha bug P1
Dominant language
Java
Stars
0
Forks
0
Avg merge
2d 21h
Merged PRs (30d)
12

Description

Description

The lobby HUD displays "02:00" (120 seconds) when only 6 real seconds pass. The root cause is a ticks-vs-seconds unit mismatch: the phase duration is stored in ticks (e.g. 120 ticks = 6 seconds at 20 TPS) but the HUD formats it as if it were seconds.

Acceptance Criteria

  • The countdown displays the correct wall-clock time remaining (e.g. "0:06" for 120 ticks at 20 TPS)
  • The conversion `ticks / 20 = seconds` is applied before formatting
  • A shared utility method `TickUtils.toSeconds(long ticks)` is introduced to prevent future mismatches
  • Unit test covers the conversion and the display formatting

Technical Details

  • Bug is in the `GameHud` countdown formatter or the value passed to it from `LobbyPhase`
  • Check all phase duration constants for unit consistency (ticks vs seconds vs milliseconds)
  • `TimedPhase` (if used) stores duration — verify its unit contract

Dependencies

None

Estimate

S

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the countdown from LobbyPhase through GameHud, and inspect TimedPhase if it is used, checking the unit contract for each phase duration. Introduce the requested TickUtils.toSeconds(long ticks) utility and cover both conversion and display formatting with unit tests. Done means 120 ticks displays as 0:06 at 20 TPS and related duration constants use consistent units.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.