Class cleanup.

This commit is contained in:
MagicBot committed 2023-08-14 14:34:26 -04:00
1 parent 6e3dd55804
commit 1eaec16ca3
1 file changed
+6 -1
@@ -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);