mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-05 23:08:23 +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> {
|
public class MailMessageSerializer implements TypeSerializer<MailMessage> {
|
||||||
@Override
|
@Override
|
||||||
public MailMessage deserialize(Type type, ConfigurationNode node) throws SerializationException {
|
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),
|
return new MailMessage(node.node("read").getBoolean(false),
|
||||||
legacy,
|
legacy,
|
||||||
|
|
Loading…
Reference in a new issue