mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43: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
|
||||
end
|
||||
|
||||
QueuedArgs = NULL
|
||||
QueuedFunction = NULL
|
||||
end)
|
||||
|
||||
local function GetCurrentMapWorkshopID()
|
||||
|
@ -33,7 +36,7 @@ local function GetCurrentMapWorkshopID()
|
|||
if file.Exists("maps/" .. currentMap .. ".bsp", addon.title) then return addon.wsid end
|
||||
end
|
||||
|
||||
return 0
|
||||
return "no_map_id"
|
||||
end
|
||||
|
||||
function GetCourse(sharecode)
|
||||
|
@ -89,7 +92,7 @@ function UploadCourse()
|
|||
|
||||
return true
|
||||
else
|
||||
print("An error occurred: " .. message)
|
||||
print("An error occurred: " .. response.message)
|
||||
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue