fix: 修复空字串set

Signed-off-by: 502647092 <admin@yumc.pw>
master
502647092 2016-08-16 00:12:02 +08:00
parent 500e8e571c
commit 92a839ce5d
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ public class PlayerData {
public static void clearLottery() {
for (final Entry<String, List<List<String>>> pl : playerLottery.entrySet()) {
final String p = pl.getKey();
playerdata.set(p, null);
if (p != null && !"".equals(p)) {
playerdata.set(p, null);
}
}
playerLottery.clear();
playerdata.save();