Browse Source

Unused orphan npc collection removed.

master
MagicBot 1 year ago
parent
commit
e4283c2444
  1. 5
      src/engine/objects/NPC.java

5
src/engine/objects/NPC.java

@ -44,7 +44,6 @@ import static engine.util.StringUtils.wordCount; @@ -44,7 +44,6 @@ import static engine.util.StringUtils.wordCount;
public class NPC extends AbstractCharacter {
public static int SVR_CLOSE_WINDOW = 4;
public static ArrayList<Integer> Oprhans = new ArrayList<>();
public static HashMap<Integer, ArrayList<String>> _pirateNames = new HashMap<>();
// Used for thread safety
public final ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
@ -1048,10 +1047,6 @@ public class NPC extends AbstractCharacter { @@ -1048,10 +1047,6 @@ public class NPC extends AbstractCharacter {
else
this.guild = Guild.getGuild(this.guildUUID);
if (this.guildUUID != 0 && (this.guild == null || this.guild.isEmptyGuild()))
NPC.Oprhans.add(currentID);
else if (this.building == null && this.buildingUUID > 0)
NPC.Oprhans.add(currentID);
if (this.guild == null)
this.guild = Guild.getErrantGuild();

Loading…
Cancel
Save