From a0164d5abb833c4b0e0074c7a4549ce833efe870 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Mon, 27 May 2024 21:23:28 -0500 Subject: [PATCH] invisible cities on map logging --- src/engine/objects/City.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index 4da34f2c..58fa11df 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -295,7 +295,11 @@ public class City extends AbstractWorldObject { else writer.putString(rulingNation.getName()); - writer.putInt(city.getTOL().getRank()); + if(city.getTOL() != null) { + writer.putInt(city.getTOL().getRank()); + }else{ + writer.putInt(-1); + } if (city.isNoobIsle > 0) writer.putInt(1);