【家园功能1.0.5】建筑升级前置条件判断,添加长度验证
parent
bee333690e
commit
937c740ebd
|
@ -73,7 +73,7 @@ public class HomeLogic {
|
|||
}
|
||||
//升级前置条件
|
||||
int[] rule = landLevel.getRule();
|
||||
if (rule != null){
|
||||
if (rule != null && rule.length > 1){
|
||||
ArchitectureInfo info1 = user.getPlayerInfoManager().getArchitectureInfoMap().get(rule[0]);
|
||||
if (info1 == null){
|
||||
LOGGER.error("浮生门建筑升级,前置建筑未解锁,升级建筑levelId:{},前置建筑poolId:{}",id,rule[0]);
|
||||
|
|
Loading…
Reference in New Issue