From 2a26c4b49858f03dae570fd2b906619daddadee8 Mon Sep 17 00:00:00 2001 From: Ziggy Date: Sat, 27 Jan 2024 10:54:41 +0100 Subject: [PATCH] When CRC is read from mongodb, let's also set the str field so this behaves like decoding from a network packet --- src/main/java/com/projectswg/common/data/CRC.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/projectswg/common/data/CRC.java b/src/main/java/com/projectswg/common/data/CRC.java index d04204f..1ca5ce2 100644 --- a/src/main/java/com/projectswg/common/data/CRC.java +++ b/src/main/java/com/projectswg/common/data/CRC.java @@ -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