When CRC is read from mongodb, let's also set the str field so this behaves like decoding from a network packet

This commit is contained in:
Ziggy
2024-01-27 10:54:41 +01:00
parent 517bf01c29
commit ed7cc9173f

View File

@@ -1,5 +1,5 @@
/***********************************************************************************
* Copyright (c) 2018 /// Project SWG /// www.projectswg.com *
* Copyright (c) 2024 /// Project SWG /// www.projectswg.com *
* *
* ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on *
* July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
@@ -122,6 +122,7 @@ public class CRC implements Encodable, MongoPersistable {
@Override
public void readMongo(MongoData data) {
crc = data.getInteger("crc", 0);
str = getString(crc);
}
@Override