Browse Source

bugfix: not overriding mine open date on boot.

master
MagicBot 2 years ago
parent
commit
af7d801388
  1. 4
      src/engine/objects/Mine.java

4
src/engine/objects/Mine.java

@ -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){

Loading…
Cancel
Save