diff options
author | Minenash <minenash@protonmail.com> | 2019-01-03 22:52:43 -0500 |
---|---|---|
committer | Minenash <minenash@protonmail.com> | 2019-01-03 22:52:43 -0500 |
commit | 68769254df8cdd12607942ce7a95e22f00c7ffed (patch) | |
tree | 8e643cf15f4d5cd1cf98211e2f3f5a45790c1efd | |
parent | 4922bb4aeadab209051a24fa2219caace5e91e2b (diff) |
Fixed bug where user with no mail, was given a list for them.
-rw-r--r-- | src/main/java/com/redstoner/modules/mail/Mail.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/redstoner/modules/mail/Mail.java b/src/main/java/com/redstoner/modules/mail/Mail.java index a272b2f..ee26842 100644 --- a/src/main/java/com/redstoner/modules/mail/Mail.java +++ b/src/main/java/com/redstoner/modules/mail/Mail.java @@ -544,7 +544,8 @@ public class Mail implements Module, Listener list.add(m); idToMsg.put(m.getID(), m); } - playerToMsg.put(uuid, list); + if (!list.isEmpty()) + playerToMsg.put(uuid, list); } } |