Few corrections to netNav and align starNav to recent changes in netNav
This commit is contained in:
10
netNav
10
netNav
@@ -284,8 +284,8 @@ end
|
||||
function setMap(mapName, mapTimeout)
|
||||
if type(mapName) ~= "string" then
|
||||
error("mapName must be string")
|
||||
if type(mapTimeout) ~= "number" or mapTimeout < 0 then
|
||||
end
|
||||
if type(mapTimeout) ~= "number" or mapTimeout < 0 then
|
||||
error("timeout must be positive number")
|
||||
end
|
||||
serverMap = remoteMap.new(mapName, mapTimeout)
|
||||
@@ -293,4 +293,10 @@ end
|
||||
|
||||
function getMap()
|
||||
return serverMap
|
||||
end
|
||||
end
|
||||
|
||||
function getPosition()
|
||||
if position then
|
||||
return position:value()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user