mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 04:22:32 +00:00
Fix some mail glitches. Check valid addresses for writing letters
This commit is contained in:
1 parent
3d4ba15751
commit
344e842764
8 files changed
+55
-23
No files matched your search
@@ -154,6 +154,9 @@ public class GuiLetter extends GuiForestry<TileForestry> {
|
||||
if(!isProcessedLetter && !checkedSessionVars) {
|
||||
checkedSessionVars = true;
|
||||
setFromSessionVars();
|
||||
String recipient = this.address.getText();
|
||||
EnumAddressee recipientType = container.getCarrierType();
|
||||
setRecipient(recipient, recipientType);
|
||||
}
|
||||
|
||||
// Check for focus changes
|
||||
@@ -247,7 +250,7 @@ public class GuiLetter extends GuiForestry<TileForestry> {
|
||||
address.setText(recipient);
|
||||
|
||||
EnumAddressee type = EnumAddressee.fromString(typeName);
|
||||
setRecipient(recipient, type);
|
||||
container.setCarrierType(type);
|
||||
}
|
||||
|
||||
SessionVars.clearStringVar("mail.letter.recipient");
|
||||
|
||||
Reference in new issue
Block a user