Browse Source

update bane time first try

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
bad7c6e798
  1. 3
      src/engine/objects/Bane.java
  2. 2
      src/engine/objects/Contract.java

3
src/engine/objects/Bane.java

@ -535,7 +535,8 @@ public final class Bane { @@ -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
src/engine/objects/Contract.java

@ -381,7 +381,6 @@ public class Contract extends AbstractGameObject { @@ -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 { @@ -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())){

Loading…
Cancel
Save