@@ -535,8 +535,7 @@ 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) {
|
||||
|
||||
|
||||
@@ -381,6 +381,7 @@ 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())){
|
||||
@@ -391,6 +392,7 @@ 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())){
|
||||
|
||||
Reference in New Issue
Block a user