热更bug修复2

back_recharge
duhui 2023-01-27 23:25:51 +08:00
parent 27380b64f3
commit b996736cd8
1 changed files with 13 additions and 9 deletions

View File

@ -1379,6 +1379,7 @@ public class CBean2Proto {
*/
public static Map<String, Jewel> jewelOfLocal(User user, Hero hero){
HashMap<String, Jewel> result = new HashMap<>();
try {
Map<String, PropertyItem> itemMap = user.getEquipManager().getEquipMap();
for (String id : hero.getJewelInfo()) {
PropertyItem item = itemMap.get(id);
@ -1390,6 +1391,9 @@ public class CBean2Proto {
result.put(id,jewel);
}
}
}catch (Exception e){
e.printStackTrace();
}
return result;
}
}