From 6839679beec6bba10fb108b55505d667237f2d0f Mon Sep 17 00:00:00 2001 From: Josh-Larson Date: Thu, 10 Oct 2024 15:25:09 -0500 Subject: [PATCH] Fixed boot-up error when deserializing Mail --- .../com/projectswg/common/data/encodables/player/Mail.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/projectswg/common/data/encodables/player/Mail.kt b/src/main/java/com/projectswg/common/data/encodables/player/Mail.kt index eb0bbea..d85bcf8 100644 --- a/src/main/java/com/projectswg/common/data/encodables/player/Mail.kt +++ b/src/main/java/com/projectswg/common/data/encodables/player/Mail.kt @@ -1,11 +1,10 @@ /*********************************************************************************** * Copyright (c) 2024 /// Project SWG /// www.projectswg.com * * * - * ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on * + * ProjectSWG is an emulation project for Star Wars Galaxies founded on * * July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. * - * Our goal is to create an emulator which will provide a server for players to * - * continue playing a game similar to the one they used to play. We are basing * - * it on the final publish of the game prior to end-game events. * + * Our goal is to create one or more emulators which will provide servers for * + * players to continue playing a game similar to the one they used to play. * * * * This file is part of PSWGCommon. * * * @@ -46,6 +45,8 @@ class Mail(var sender: String, subject: String, message: String, receiverId: Lon var outOfBandPackage: OutOfBandPackage = OutOfBandPackage() var timestamp: Instant = Instant.now() + constructor() : this("", "", "", 0) + override fun encode(): ByteArray { val data = NetBuffer.allocate(length) data.addUnicode(message)