mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Fix weird behavior with legacy mails (#4307)
This commit is contained in:
parent
d78729f343
commit
d903e40a53
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ import java.util.UUID;
|
|||
public class MailMessageSerializer implements TypeSerializer<MailMessage> {
|
||||
@Override
|
||||
public MailMessage deserialize(Type type, ConfigurationNode node) throws SerializationException {
|
||||
final boolean legacy = !node.node("legacy").isNull() && node.node("legacy").getBoolean(false);
|
||||
final boolean legacy = node.node("legacy").getBoolean(true);
|
||||
|
||||
return new MailMessage(node.node("read").getBoolean(false),
|
||||
legacy,
|
||||
|
|
Loading…
Reference in a new issue