stronghold guardian fix
This commit is contained in:
@@ -14,12 +14,8 @@ import java.util.concurrent.ThreadLocalRandom;
|
|||||||
public class StrongholdManager {
|
public class StrongholdManager {
|
||||||
|
|
||||||
public static void processStrongholds() {
|
public static void processStrongholds() {
|
||||||
//end all current stronghold activities
|
|
||||||
ArrayList<Mine> mines = Mine.getMines();
|
ArrayList<Mine> mines = Mine.getMines();
|
||||||
for(Mine mine : mines){
|
|
||||||
if (mine.isStronghold)
|
|
||||||
StrongholdManager.EndStronghold(mine);
|
|
||||||
}
|
|
||||||
|
|
||||||
//process strongholds selecting 2 randomly to become active
|
//process strongholds selecting 2 randomly to become active
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ public class HalfHourlyJobThread implements Runnable {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
ArrayList<Mine> mines = Mine.getMines();
|
ArrayList<Mine> mines = Mine.getMines();
|
||||||
|
for(Mine mine : mines){
|
||||||
|
if (mine.isStronghold)
|
||||||
|
StrongholdManager.EndStronghold(mine);
|
||||||
|
}
|
||||||
for (Mine mine : mines) {
|
for (Mine mine : mines) {
|
||||||
try {
|
try {
|
||||||
//handle mines opening on server reboot weird time interval
|
//handle mines opening on server reboot weird time interval
|
||||||
|
|||||||
Reference in New Issue
Block a user