Browse Source

catch weird city null error

lakebane-new-effects
FatBoy-DOTC 1 week ago
parent
commit
6ed648d6d4
  1. 8
      src/engine/objects/City.java

8
src/engine/objects/City.java

@ -395,9 +395,15 @@ public class City extends AbstractWorldObject {
//open city, just list //open city, just list
if (city.open && city.getTOL() != null && city.getTOL().getRank() > 4) { if (city.open && city.getTOL() != null && city.getTOL().getRank() > 4) {
cities.add(city); cities.add(city);
}else if(city.getGuild().getNation().equals(pc.guild.getNation())){ }else {
try {
if (city.getGuild().getNation().equals(pc.guild.getNation())) {
cities.add(city); cities.add(city);
} }
}catch(Exception e){
Logger.error(e);
}
}
} }
} else if (city.isNpc == 1) { } else if (city.isNpc == 1) {
//list NPC cities //list NPC cities

Loading…
Cancel
Save