Skip to content

bug: Map-to-map transition never triggered — advanceToNextMap() is never called #98

@TheMeinerLP

Description

@TheMeinerLP

Description

`GameOrchestrator.advanceToNextMap()` (or equivalent) exists but is never called after a map finishes. The cup therefore never progresses beyond the first map, and the end-of-cup flow (final scoreboard, winner announcement) is unreachable.

Acceptance Criteria

  • After `GamePhase` ends, the system checks whether more maps remain in the current cup
  • If maps remain: players are transitioned to the next map (teleport, HUD reset, ring state reset)
  • If no maps remain: the cup ends and `EndPhase` is triggered
  • Map index is tracked correctly in `CupComponent` across transitions
  • Per-map scores are preserved and accumulated into the cup total

Technical Details

  • Wire the call in the phase-transition callback after `GamePhase.onFinish()`
  • A thin `MapTransitionPhase` (3-second countdown: "Next map: ...") improves player orientation
  • `ActiveMapComponent` must be updated with the new map on each transition
  • Unload the previous Minestom instance to free memory

Dependencies

  • Phase wiring (issue: map never loads)
  • Race end condition (GamePhase must be able to finish)

Estimate

M

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions