MultiServer: fix sending items_handling warning

This commit is contained in:
Fabian Dill 2022-02-23 03:35:05 +01:00
parent 1b73bacde1
commit 534ce179ec
1 changed files with 4 additions and 2 deletions

View File

@ -1372,8 +1372,10 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
client.no_items = False
client.remote_items = slot in ctx.remote_items
client.remote_start_inventory = slot in ctx.remote_start_inventory
ctx.send_msgs([{"cmd": "Print", "text": "Warning: Client is not sending items_handling flags, "
"which will not be supported in the future."}])
await ctx.send_msgs(client, [{
"cmd": "Print", "text":
"Warning: Client is not sending items_handling flags, "
"which will not be supported in the future."}])
else:
try:
client.items_handling = args['items_handling']