diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 132700c0..b43bf21e 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -336,9 +336,14 @@ public class Mine extends AbstractGameObject { } public static ArrayList getMinesForGuild(int guildID) { + ArrayList mineList = new ArrayList<>(); + + // Only inactive mines are returned. + for (Mine mine : Mine.mineMap.keySet()) { - if (mine.owningGuild.getObjectUUID() == guildID) + if (mine.owningGuild.getObjectUUID() == guildID && + mine.isActive == false) mineList.add(mine); } return mineList;