From be478ef31dc6a298b2dd0f356ac92eb5c4a973fa Mon Sep 17 00:00:00 2001 From: Waterpicker Date: Mon, 20 Jan 2025 10:52:28 -0600 Subject: [PATCH] Fixed quirk where mail won't seal if you never write anything. --- .../common/client/screen/mails/MailEditScreen.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/generations/gg/generations/core/generationscore/common/client/screen/mails/MailEditScreen.java b/common/src/main/java/generations/gg/generations/core/generationscore/common/client/screen/mails/MailEditScreen.java index 5ac3042de..f6b799105 100644 --- a/common/src/main/java/generations/gg/generations/core/generationscore/common/client/screen/mails/MailEditScreen.java +++ b/common/src/main/java/generations/gg/generations/core/generationscore/common/client/screen/mails/MailEditScreen.java @@ -122,9 +122,9 @@ protected void init() { } private void saveChanges(boolean publish) { - if (!this.isModified) { - return; - } +// if (!this.isModified) { +// return; +// } this.updateLocalCopy(publish); int i = this.hand == InteractionHand.MAIN_HAND ? this.owner.getInventory().selected : 40; GenerationsCore.getImplementation().getNetworkManager().sendPacketToServer(new C2SEditMailPacket(i, this.contents, publish ? Optional.of("") : Optional.empty()));