bugfix: not overriding mine open date on boot.

This commit is contained in:
2023-01-10 12:27:54 -05:00
parent 98470d4b1a
commit af7d801388
+1 -3
View File
@@ -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){