Skip to content

Commit

Permalink
Bug with targetable component on screen switch from controls to game …
Browse files Browse the repository at this point in the history
…area
  • Loading branch information
henrybatt committed Oct 19, 2023
1 parent e722fbd commit 198f5fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ public void show() {
} else {
ServiceLocator.getGameStateObserverService().trigger("updatePlanet", "gameArea", currentAreaName);
}
ServiceLocator.registerGameArea(this.allGameAreas.get(currentAreaName));

this.allGameAreas.get(currentAreaName).create();
this.player = allGameAreas.get(currentAreaName).getPlayer();
if ("earth".equals(name)) {
showTitleBox();
}
ServiceLocator.registerGameArea(this.allGameAreas.get(currentAreaName));
}

private void showTitleBox() {
Expand Down

0 comments on commit 198f5fc

Please sign in to comment.