From 4d487e6bf0ecb7e46d88e9b519b79e1a6a455773 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 13:29:18 -0600 Subject: [PATCH] city bane status update fix --- src/engine/objects/City.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/City.java b/src/engine/objects/City.java index f2f4db34..e30a2afa 100644 --- a/src/engine/objects/City.java +++ b/src/engine/objects/City.java @@ -239,7 +239,7 @@ public class City extends AbstractWorldObject { writer.putString(rulingGuild.getName()); if(city.getBane() != null) { Bane bane = city.getBane(); - if(bane.daySet && bane.timeSet){ + if(bane.daySet && bane.timeSet && bane.getLiveDate() != null){ int day = bane.getLiveDate().dayOfMonth().get(); int month = bane.getLiveDate().getMonthOfYear(); int year = bane.getLiveDate().year().get();