Perform send_xt filter on single player in igloo backyard

This commit is contained in:
Ben 2020-06-12 15:15:52 +01:00
parent d25bfe4c98
commit 2ef0f457db

View File

@ -90,7 +90,8 @@ class PenguinBackyardRoom(RoomMixin):
p.toy = None
async def send_xt(self, *data, f=None):
await self.penguin.send_xt(*data)
if f is None or f(self.penguin):
await self.penguin.send_xt(*data)
class Room(db.Model, RoomMixin):