mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
fix course uploading (hopefully)
This commit is contained in:
parent
7cf77f4029
commit
19d056bcd7
1 changed files with 5 additions and 2 deletions
|
@ -22,6 +22,9 @@ concommand.Add("Beatrun_Confirm", function()
|
||||||
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
QueuedArgs = NULL
|
||||||
|
QueuedFunction = NULL
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local function GetCurrentMapWorkshopID()
|
local function GetCurrentMapWorkshopID()
|
||||||
|
@ -33,7 +36,7 @@ local function GetCurrentMapWorkshopID()
|
||||||
if file.Exists("maps/" .. currentMap .. ".bsp", addon.title) then return addon.wsid end
|
if file.Exists("maps/" .. currentMap .. ".bsp", addon.title) then return addon.wsid end
|
||||||
end
|
end
|
||||||
|
|
||||||
return 0
|
return "no_map_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
function GetCourse(sharecode)
|
function GetCourse(sharecode)
|
||||||
|
@ -89,7 +92,7 @@ function UploadCourse()
|
||||||
|
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
print("An error occurred: " .. message)
|
print("An error occurred: " .. response.message)
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue