Improve how the data version is handled

This commit is contained in:
Melledy committed 2025-11-17 20:22:06 -08:00
1 parent 7c58d22771
commit dc293cd7ea
6 files changed
+21 -11

No files matched your search

@@ -39,7 +39,7 @@ public class NetMsgIdUtils {
}
public static void dumpPacketIds() {
try (FileWriter writer = new FileWriter("./MsgIds_" + GameConstants.VERSION + ".json")) {
try (FileWriter writer = new FileWriter("./MsgIds_" + GameConstants.getGameVersion() + ".json")) {
// Create sorted tree map
Map<Integer, String> packetIds = msgIdMap.int2ObjectEntrySet().stream()
.filter(e -> e.getIntKey() > 0)