Archived
0

Fixed unarchiving mail

This commit is contained in:
Minenash
2019-01-07 21:17:25 -05:00
parent 857dfe32ca
commit 5a9c34851b

View File

@@ -400,7 +400,7 @@ public class Mail implements Module, Listener
String uuid = ((Player)sender).getUniqueId().toString();
Map<Integer,Msg> list = archives.get(uuid);
if (id < 0 || id >= list.size()) {
if (id < 0 || list == null || !list.containsKey(id)) {
getLogger().message(sender, true, "You have no archived messages with that ID.");
return;
}