null city bug

This commit is contained in:
2025-03-13 19:09:47 -05:00
parent aba82616df
commit 43072786b1
+6
View File
@@ -382,6 +382,12 @@ public class City extends AbstractWorldObject {
if (ago.getObjectType().equals(GameObjectType.City)) {
City city = (City) ago;
if(city == null)
continue;
if(city.getTOL() != null && city.getTOL().getRank() < 0)
continue;
if (city.noTeleport)
continue;