From 1eaec16ca36be45f32aac607baa5928981c19cbe Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 14 Aug 2023 14:34:26 -0400 Subject: [PATCH] Class cleanup. --- .../net/client/handlers/PetitionReceivedMsgHandler.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/handlers/PetitionReceivedMsgHandler.java b/src/engine/net/client/handlers/PetitionReceivedMsgHandler.java index af8641d6..e87f800b 100644 --- a/src/engine/net/client/handlers/PetitionReceivedMsgHandler.java +++ b/src/engine/net/client/handlers/PetitionReceivedMsgHandler.java @@ -39,8 +39,13 @@ public class PetitionReceivedMsgHandler extends AbstractClientMsgHandler { return false; try { - petitionReceivedMsg.petition = 2; + // Write petition to database + DbManager.PetitionQueries.WRITE_PETITION_TO_TABLE(petition); + + // Close the petition window + + petitionReceivedMsg.petition = 2; Dispatch dispatch = Dispatch.borrow(playerCharacter, msg); DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);