Skip to content

Commit

Permalink
fix for watching
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur1 committed Oct 23, 2020
1 parent c9a7a4d commit 6e1ab35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/GameBuilding.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getEntity(Game $game): Building
public function appendEntityData(Game $game)
{
$entity = $this->getEntity($game);
$this->can_use = $entity->canUse();
$this->can_use = $game->my_player_order ? $entity->canUse() : false;
$this->occupying_players = $entity->occupyingPlayers();
}

Expand Down

0 comments on commit 6e1ab35

Please sign in to comment.