Update data version

This commit is contained in:
Melledy
2025-10-27 23:56:11 -07:00
parent f618486ced
commit 07150384ce
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
package emu.nebula;
public class GameConstants {
public static final int DATA_VERSION = 22;
public static final int DATA_VERSION = 25;
public static final String VERSION = "1.0.0." + DATA_VERSION;
public static final String PROTO_BASE_TYPE_URL = "type.googleapis.com/proto.";

View File

@@ -2,6 +2,7 @@ package emu.nebula.server.routes;
import org.jetbrains.annotations.NotNull;
import emu.nebula.GameConstants;
import emu.nebula.proto.Pb.ServerAgent;
import emu.nebula.proto.Pb.ServerListMeta;
import emu.nebula.server.HttpServer;
@@ -23,7 +24,7 @@ public class MetaServerlistHandler implements Handler {
// Create server list
this.list = ServerListMeta.newInstance()
.setVersion(22)
.setVersion(GameConstants.DATA_VERSION)
.setReportEndpoint(server.getServerConfig().getDisplayAddress() + "/report");
var agent = ServerAgent.newInstance()