From a6d3c827ad824dd134367ac414ab094d097e4774 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 12 Sep 2024 19:08:08 -0500 Subject: [PATCH] teleport to mines --- src/engine/objects/Mine.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index af8ec310..e9afd3ef 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -322,8 +322,10 @@ public class Mine extends AbstractGameObject { public static ArrayList getMinesToTeleportTo(PlayerCharacter player) { ArrayList mines = new ArrayList<>(); for(Mine mine : Mine.getMines()) - if(mine.getOwningGuild() != null && mine.getOwningGuild().getNation().equals(player.getGuild().getNation())) - mines.add(mine); + if(!mine.isActive) + if(mine.getOwningGuild() != null) + if(mine.getOwningGuild().getNation().equals(player.getGuild().getNation())) + mines.add(mine); return mines; }