MultiServer: remove no longer needed value check from Set packet
This commit is contained in:
parent
73b14d3826
commit
69721d2d04
|
@ -1562,7 +1562,7 @@ async def process_client_cmd(ctx: Context, client: Client, args: dict):
|
||||||
await ctx.send_msgs(client, [args])
|
await ctx.send_msgs(client, [args])
|
||||||
|
|
||||||
elif cmd == "Set":
|
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:
|
"operations" not in args or not type(args["operations"]) == list:
|
||||||
await ctx.send_msgs(client, [{'cmd': 'InvalidPacket', "type": "arguments",
|
await ctx.send_msgs(client, [{'cmd': 'InvalidPacket', "type": "arguments",
|
||||||
"text": 'Set', "original_cmd": cmd}])
|
"text": 'Set', "original_cmd": cmd}])
|
||||||
|
|
|
@ -108,9 +108,10 @@ def get_any_version(data: dict) -> Version:
|
||||||
return Version(int(data["major"]), int(data["minor"]), int(data["build"]))
|
return Version(int(data["major"]), int(data["minor"]), int(data["build"]))
|
||||||
|
|
||||||
|
|
||||||
whitelist = {"NetworkPlayer": NetworkPlayer,
|
whitelist = {
|
||||||
"NetworkItem": NetworkItem,
|
"NetworkPlayer": NetworkPlayer,
|
||||||
}
|
"NetworkItem": NetworkItem,
|
||||||
|
}
|
||||||
|
|
||||||
custom_hooks = {
|
custom_hooks = {
|
||||||
"Version": get_any_version
|
"Version": get_any_version
|
||||||
|
|
Loading…
Reference in New Issue