小问题
parent
697b531f1a
commit
fbba7b5300
|
@ -12,7 +12,6 @@ import com.ljsd.jieling.network.session.ISession;
|
|||
import com.ljsd.jieling.util.ItemUtil;
|
||||
import config.SGMMaster;
|
||||
import config.SRechargeCommodityNewConfig;
|
||||
import manager.STableManager;
|
||||
import org.springframework.stereotype.Component;
|
||||
import rpc.protocols.MessageTypeProto;
|
||||
import rpc.protocols.PlayerInfoProto;
|
||||
|
|
|
@ -2024,11 +2024,11 @@ public class PlayerLogic {
|
|||
return 0;
|
||||
}
|
||||
int lv = 0;
|
||||
List<SPrestigeConfig> list = typeMap.values().stream().collect(Collectors.toList());
|
||||
List<SPrestigeConfig> list = new ArrayList<>(typeMap.values());
|
||||
Item item = user.getItemManager().getItem(list.get(0).getExperience()[0]);
|
||||
long num = Optional.ofNullable(item).map(Item::getItemNum).orElse(0L);
|
||||
for (SPrestigeConfig value : list) {
|
||||
if (value.getExperience() == null){
|
||||
if (value.getExperience() == null || value.getExperience().length == 0){
|
||||
lv = value.getLevel();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue