senseiwells / EssentialClient

EssentialClient is a client side mod originally forked from Carpet Client for 1.15.2 that implements new client side features
MIT License
77 stars 14 forks source link

Network.downloadFile() Download failed #104

Closed JiangZeOvO closed 1 year ago

JiangZeOvO commented 1 year ago

image

Website splicing is correct Download directly using Google

But the return value of the function is false

Nor did it download successfully

senseiwells commented 1 year ago

Sorry for the late reply - the reason that the file doesn't download successfully is because your file is listed as the /Scripts directory, this is what you probably mean:

file = new File("config/EssentialClient/Scripts/Shop.php");
Network.downloadFile(config_url + "Shop.php", file);

I have tested this and it works.