Skip to content

Commit

Permalink
Merge pull request #4774 from kwvanderlinde/fixup/pr-4771-bad-state-w…
Browse files Browse the repository at this point in the history
…hen-connected-now-for-some-reason

Go back to calling MapTool.setCampaign()
  • Loading branch information
cwisniew authored May 8, 2024
2 parents 4b3f0a1 + 958664d commit cb46722
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ private void handle(SetCampaignMsg msg) {
EventQueue.invokeLater(
() -> {
Campaign campaign = Campaign.fromDto(msg.getCampaign());
client.setCampaign(campaign);
MapTool.setCampaign(campaign);

// Hide the "Connecting" overlay
MapTool.getFrame().hideGlassPane();
Expand Down Expand Up @@ -1048,7 +1048,7 @@ private void handle(UpdatePlayerStatusMsg updatePlayerStatusMsg) {
var loaded = updatePlayerStatusMsg.getLoaded();

Player player =
MapTool.getPlayerList().stream()
client.getPlayerList().stream()
.filter(x -> x.getName().equals(playerName))
.findFirst()
.orElse(null);
Expand Down

0 comments on commit cb46722

Please sign in to comment.