代码优化
parent
64fcc5a485
commit
3cece5a571
|
|
@ -624,9 +624,7 @@ public class MapManager extends MongoBase {
|
|||
return monsterTempSkill;
|
||||
}
|
||||
public void updateMonsterTempSkill(int monsterGroupId,int skillId,int count){
|
||||
if(monsterTempSkill.get(monsterGroupId)==null){
|
||||
monsterTempSkill.put(monsterGroupId,new HashMap<>());
|
||||
}
|
||||
monsterTempSkill.computeIfAbsent(monsterGroupId, k -> new HashMap<>());
|
||||
monsterTempSkill.get(monsterGroupId).put(skillId,count);
|
||||
updateString("monsterTempSkill." + monsterGroupId +"." + skillId, count);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue