bugfix: not overriding mine open date on boot.
This commit is contained in:
@@ -231,7 +231,7 @@ try{
|
|||||||
|
|
||||||
int mineTime = (nation != null && !nation.isErrant()) ? nation.getMineTime() : MBServerStatics.MINE_EARLY_WINDOW;
|
int mineTime = (nation != null && !nation.isErrant()) ? nation.getMineTime() : MBServerStatics.MINE_EARLY_WINDOW;
|
||||||
|
|
||||||
LocalDateTime openDate = LocalDateTime.now().withHour(mineTime).withMinute(0).withSecond(0).withNano(0);
|
this.openDate = this.openDate.withHour(mineTime).withMinute(0).withSecond(0).withNano(0);
|
||||||
|
|
||||||
//Failed to Update Database, default mine time.
|
//Failed to Update Database, default mine time.
|
||||||
|
|
||||||
@@ -242,8 +242,6 @@ try{
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.openDate = openDate;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean changeProductionType(Resource resource){
|
public boolean changeProductionType(Resource resource){
|
||||||
|
|||||||
Reference in New Issue
Block a user