Update netrequire.lua

This commit is contained in:
LDDestroier 2019-11-03 14:44:16 -05:00 committed by GitHub
parent 7c18e45698
commit 5d6f155499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -19,9 +19,11 @@ local function netrequire(_name, alwaysDownload, ...)
else
local url = "https://github.com/LDDestroier/CC/raw/master/netrequire/" .. name
local net = http.get(url)
local description
if net then
url = net.readLine()
local useLoadAPI = net.readLine():sub(1, 4) == "true"
description = net.readAll()
net.close()
net = http.get(url)
if net then