Browse Source

stronghold guardian fix

lakebane-strongholds
FatBoy-DOTC 4 months ago
parent
commit
ccbe4fba04
  1. 6
      src/engine/gameManager/StrongholdManager.java
  2. 5
      src/engine/workthreads/HalfHourlyJobThread.java

6
src/engine/gameManager/StrongholdManager.java

@ -14,12 +14,8 @@ import java.util.concurrent.ThreadLocalRandom; @@ -14,12 +14,8 @@ import java.util.concurrent.ThreadLocalRandom;
public class StrongholdManager {
public static void processStrongholds() {
//end all current stronghold activities
ArrayList<Mine> mines = Mine.getMines();
for(Mine mine : mines){
if (mine.isStronghold)
StrongholdManager.EndStronghold(mine);
}
//process strongholds selecting 2 randomly to become active
int count = 0;

5
src/engine/workthreads/HalfHourlyJobThread.java

@ -41,7 +41,10 @@ public class HalfHourlyJobThread implements Runnable { @@ -41,7 +41,10 @@ public class HalfHourlyJobThread implements Runnable {
try {
ArrayList<Mine> mines = Mine.getMines();
for(Mine mine : mines){
if (mine.isStronghold)
StrongholdManager.EndStronghold(mine);
}
for (Mine mine : mines) {
try {
//handle mines opening on server reboot weird time interval

Loading…
Cancel
Save