mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Matchmaker & some improvements.
**Changes** - Added the websocket for matchmaker into the server so you can use the matchmaker again. (more infos in the ReadMe file) - Added some fixes into the cloudstorage to fix long waiting on nintendo switch & mobile when checking server connection. - Added support for the F8 key to bring up the console. - Removed a console.log in functions to clean up the log (no longer showing the season in log for no reason)
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
const XMLBuilder = require("xmlbuilder");
|
||||
const uuid = require("uuid");
|
||||
|
||||
async function sleep(ms) {
|
||||
await new Promise((resolve, reject) => {
|
||||
setTimeout(resolve, ms);
|
||||
})
|
||||
}
|
||||
|
||||
function GetVersionInfo(req) {
|
||||
var memory = {
|
||||
season: 0,
|
||||
@@ -236,7 +242,6 @@ function getContentPages(req) {
|
||||
try {
|
||||
const backgrounds = contentpages.dynamicbackgrounds.backgrounds.backgrounds;
|
||||
const season = `season${memory.season}${memory.season >= 21 ? "00" : ""}`;
|
||||
console.log(season)
|
||||
backgrounds[0].stage = season;
|
||||
backgrounds[1].stage = season;
|
||||
|
||||
@@ -354,6 +359,7 @@ function DecodeBase64(str) {
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sleep,
|
||||
GetVersionInfo,
|
||||
getItemShop,
|
||||
getTheater,
|
||||
|
||||
Reference in New Issue
Block a user