探索相关报错
parent
0c84030817
commit
36e8abdb61
|
@ -275,6 +275,13 @@ public class ExplorerMapLogic {
|
||||||
Set<Integer> uids = OnlineUserManager.sessionMap.keySet();
|
Set<Integer> uids = OnlineUserManager.sessionMap.keySet();
|
||||||
for (int uid : uids) {
|
for (int uid : uids) {
|
||||||
User user = UserManager.getUser(uid);
|
User user = UserManager.getUser(uid);
|
||||||
|
if(user == null){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
//登录一分钟后才执行 避免消息线程和分钟线程同时修改数据
|
||||||
|
if(TimeUtils.now() < user.getPlayerInfoManager().getLoginTime()+60000){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Map<Integer, ExplorerInfo> explorer = user.getPlayerInfoManager().getExplorer();
|
Map<Integer, ExplorerInfo> explorer = user.getPlayerInfoManager().getExplorer();
|
||||||
if (explorer == null || explorer.size() == 0) {
|
if (explorer == null || explorer.size() == 0) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue