mirror of
https://github.com/Melledy/Nebula.git
synced 2025-12-15 13:54:51 +01:00
Update data version
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package emu.nebula;
|
package emu.nebula;
|
||||||
|
|
||||||
public class GameConstants {
|
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 VERSION = "1.0.0." + DATA_VERSION;
|
||||||
|
|
||||||
public static final String PROTO_BASE_TYPE_URL = "type.googleapis.com/proto.";
|
public static final String PROTO_BASE_TYPE_URL = "type.googleapis.com/proto.";
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package emu.nebula.server.routes;
|
|||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import emu.nebula.GameConstants;
|
||||||
import emu.nebula.proto.Pb.ServerAgent;
|
import emu.nebula.proto.Pb.ServerAgent;
|
||||||
import emu.nebula.proto.Pb.ServerListMeta;
|
import emu.nebula.proto.Pb.ServerListMeta;
|
||||||
import emu.nebula.server.HttpServer;
|
import emu.nebula.server.HttpServer;
|
||||||
@@ -23,7 +24,7 @@ public class MetaServerlistHandler implements Handler {
|
|||||||
|
|
||||||
// Create server list
|
// Create server list
|
||||||
this.list = ServerListMeta.newInstance()
|
this.list = ServerListMeta.newInstance()
|
||||||
.setVersion(22)
|
.setVersion(GameConstants.DATA_VERSION)
|
||||||
.setReportEndpoint(server.getServerConfig().getDisplayAddress() + "/report");
|
.setReportEndpoint(server.getServerConfig().getDisplayAddress() + "/report");
|
||||||
|
|
||||||
var agent = ServerAgent.newInstance()
|
var agent = ServerAgent.newInstance()
|
||||||
|
|||||||
Reference in New Issue
Block a user