fix: Fixed wrong arguments in the server-side functions

+ fixed 2 repeated functions
+ fixed default argument in the setPlayerWorld function
This commit is contained in:
AURUMVORXX
2024-11-10 21:05:34 +03:00
parent 08140e9bf4
commit 81f49c557a
8 changed files with 134 additions and 129 deletions

View File

@@ -17,7 +17,7 @@ def getNearestWaypoint(world : str, x : int, y : int, z : int) -> dict:
## Returns
`dict {name, x, y, z}`: Waypoint information.
"""
return sqg2o.getNearestWaypoint(*locals())
return sqg2o.getNearestWaypoint(world, x, y, z)
def getWaypoint(world : str, name : str) -> dict:
"""
@@ -34,4 +34,4 @@ def getWaypoint(world : str, name : str) -> dict:
## Returns
`dict {x, y, z}`: The position of waypoint.
"""
return sqg2o.getWaypoint(*locals())
return sqg2o.getWaypoint(world, name)