update bane time first try

This commit is contained in:
2024-12-31 16:13:54 -06:00
parent ecd3b38d3a
commit bad7c6e798
2 changed files with 2 additions and 3 deletions
+2 -1
View File
@@ -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) {
-2
View File
@@ -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())){