热更bug修复2
parent
27380b64f3
commit
b996736cd8
|
|
@ -1379,16 +1379,20 @@ public class CBean2Proto {
|
|||
*/
|
||||
public static Map<String, Jewel> jewelOfLocal(User user, Hero hero){
|
||||
HashMap<String, Jewel> result = new HashMap<>();
|
||||
Map<String, PropertyItem> itemMap = user.getEquipManager().getEquipMap();
|
||||
for (String id : hero.getJewelInfo()) {
|
||||
PropertyItem item = itemMap.get(id);
|
||||
if (item == null){
|
||||
continue;
|
||||
}
|
||||
if (item instanceof Jewel){
|
||||
Jewel jewel = (Jewel) item;
|
||||
result.put(id,jewel);
|
||||
try {
|
||||
Map<String, PropertyItem> itemMap = user.getEquipManager().getEquipMap();
|
||||
for (String id : hero.getJewelInfo()) {
|
||||
PropertyItem item = itemMap.get(id);
|
||||
if (item == null){
|
||||
continue;
|
||||
}
|
||||
if (item instanceof Jewel){
|
||||
Jewel jewel = (Jewel) item;
|
||||
result.put(id,jewel);
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue