Simplify decrement assignment

This commit is contained in:
Ben 2019-10-12 00:15:09 +01:00
parent 33fe814273
commit 15e8035d26

View File

@ -103,7 +103,7 @@ async def handle_join_player_room(p, penguin_id: int, room_type: str):
@handlers.handler(XTPacket('j', 'jp'), client=ClientType.Legacy)
@handlers.cooldown(1)
async def handle_join_player_room_legacy(p, penguin_id: int):
penguin_id = penguin_id - 1000
penguin_id -= 1000
igloo = await create_temporary_room(p, penguin_id)
await p.join_room(igloo)