- if isinstance(p, NetworkSender):
- self.state["turn"] = p.base_player # "turn" contains the player who's turn it is
+ if isinstance(p, Network) and p.baseplayer != None:
+ self.state["turn"] = p.baseplayer # "turn" contains the player who's turn it is