mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Theater fix for 30.20+
This commit is contained in:
@@ -155,9 +155,14 @@ function getTheater(req) {
|
|||||||
var Season = "Season" + memory.season;
|
var Season = "Season" + memory.season;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (memory.build >= 30.20) { // Those changes have to be made before the 15.30+ ones
|
||||||
|
theater = theater.replace(/\/Game\/World\/ZoneThemes/g, "/STW_Zones/World/ZoneThemes");
|
||||||
|
theater = theater.replace(/\"DataTable\'\/Game\//ig, "\"/Script/Engine.DataTable\'\/Game\/");
|
||||||
|
}
|
||||||
|
|
||||||
if (memory.build >= 15.30) {
|
if (memory.build >= 15.30) {
|
||||||
theater = theater.replace(/\/Game\//ig, "\/SaveTheWorld\/");
|
theater = theater.replace(/\/Game\//ig, "\/SaveTheWorld\/");
|
||||||
theater = theater.replace(/\"DataTable\'\/SaveTheWorld\//ig, "\"DataTable\'\/Game\/");
|
theater = theater.replace(/\"DataTable\'\/SaveTheWorld\//ig, "\"DataTable\'\/Game\/"); // For those versions keep /Game/ for DataTables
|
||||||
}
|
}
|
||||||
|
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
|
|||||||
Reference in New Issue
Block a user