From bad7c6e798d73385612248c0de41d88f634287c3 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 16:13:54 -0600 Subject: [PATCH] update bane time first try --- src/engine/objects/Bane.java | 3 ++- src/engine/objects/Contract.java | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Bane.java b/src/engine/objects/Bane.java index 26875b10..c18a2487 100644 --- a/src/engine/objects/Bane.java +++ b/src/engine/objects/Bane.java @@ -535,7 +535,8 @@ public final class Bane { } public void setLiveDate_NEW(DateTime baneTime) { - + this.liveDate = baneTime; + this.setLiveDate(DbManager.BaneQueries.getLiveDate(this.getCityUUID())); } public void setLiveDate(DateTime baneTime) { diff --git a/src/engine/objects/Contract.java b/src/engine/objects/Contract.java index 9bc1152f..2c2fe9d8 100644 --- a/src/engine/objects/Contract.java +++ b/src/engine/objects/Contract.java @@ -381,7 +381,6 @@ public class Contract extends AbstractGameObject { bane.setLiveDate_NEW(bane.getLiveDate().plusDays(updateBaneDay)); } } - bane.setLiveDate(DbManager.BaneQueries.getLiveDate(bane.getCityUUID())); } if (updateBaneTime > 0) { if(DbManager.BaneQueries.SET_BANE_TIME_NEW(updateBaneTime,bane.getCityUUID())){ @@ -392,7 +391,6 @@ public class Contract extends AbstractGameObject { bane.setLiveDate_NEW(bane.getLiveDate().withHourOfDay(12 + updateBaneTime)); } } - bane.setLiveDate(DbManager.BaneQueries.getLiveDate(bane.getCityUUID())); } if (updateBaneCap > 0) { if(DbManager.BaneQueries.SET_BANE_CAP_NEW(updateBaneCap,bane.getCityUUID())){