mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 09:31:45 -03:00
R2 cdn added
This commit is contained in:
@@ -566,11 +566,11 @@ class ClientPatcher {
|
|||||||
|
|
||||||
// Download pre-patched JAR
|
// Download pre-patched JAR
|
||||||
if (progressCallback) progressCallback('Downloading patched server JAR...', 30);
|
if (progressCallback) progressCallback('Downloading patched server JAR...', 30);
|
||||||
console.log('Downloading pre-patched HytaleServer.jar from https://files.hytalef2p.com/jar');
|
console.log('Downloading pre-patched HytaleServer.jar');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const https = require('https');
|
const https = require('https');
|
||||||
const url = 'https://files.hytalef2p.com/jar';
|
const url = 'https://pub-027b315ece074e2e891002ca38384792.r2.dev/HytaleServer.jar';
|
||||||
|
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
https.get(url, (response) => {
|
https.get(url, (response) => {
|
||||||
@@ -634,7 +634,7 @@ class ClientPatcher {
|
|||||||
domain: newDomain,
|
domain: newDomain,
|
||||||
patchedAt: new Date().toISOString(),
|
patchedAt: new Date().toISOString(),
|
||||||
patcher: 'PrePatchedDownload',
|
patcher: 'PrePatchedDownload',
|
||||||
source: 'https://download.sanasol.ws/download/HytaleServer.jar'
|
source: 'https://pub-027b315ece074e2e891002ca38384792.r2.dev/HytaleServer.jar'
|
||||||
}));
|
}));
|
||||||
|
|
||||||
if (progressCallback) progressCallback('Server patching complete', 100);
|
if (progressCallback) progressCallback('Server patching complete', 100);
|
||||||
|
|||||||
Reference in New Issue
Block a user