MultiServer: remove no longer needed value check from Set packet

This commit is contained in:
Fabian Dill 2022-03-04 22:48:27 +01:00
parent 73b14d3826
commit 69721d2d04
2 changed files with 5 additions and 4 deletions

View File

@ -1562,7 +1562,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
await ctx.send_msgs(client, [args])
elif cmd == "Set":
if "key" not in args or "value" not in args or \
if "key" not in args or \
"operations" not in args or not type(args["operations"]) == list:
await ctx.send_msgs(client, [{'cmd': 'InvalidPacket', "type": "arguments",
"text": 'Set', "original_cmd": cmd}])

View File

@ -108,9 +108,10 @@ def get_any_version(data: dict) -> Version:
return Version(int(data["major"]), int(data["minor"]), int(data["build"]))
whitelist = {"NetworkPlayer": NetworkPlayer,
"NetworkItem": NetworkItem,
}
whitelist = {
"NetworkPlayer": NetworkPlayer,
"NetworkItem": NetworkItem,
}
custom_hooks = {
"Version": get_any_version