Improve how the data version is handled

This commit is contained in:
Melledy
2025-11-17 20:22:06 -08:00
parent 7c58d22771
commit dc293cd7ea
6 changed files with 21 additions and 11 deletions

View File

@@ -63,7 +63,7 @@ public class HttpServer {
// Patch list
public long getDataVersion() {
return getPatchlist() != null ? getPatchlist().getVersion() : GameConstants.DATA_VERSION;
return getPatchlist() != null ? getPatchlist().getVersion() : GameConstants.getDataVersion();
}
public synchronized void loadPatchList() {
@@ -89,7 +89,7 @@ public class HttpServer {
}
if (this.patchlist != null) {
Nebula.getLogger().info("Loaded patchlist version " + patchlist.getVersion());
Nebula.getLogger().info("Loaded patchlist (Data version: " + patchlist.getVersion() + ")");
}
}