-Removed unnecessary CustomNPCsException throw in addEnemyFaction.
This commit is contained in:
c0508383 committed 2022-07-07 01:15:22 -05:00
1 parent 9bd644f84a
commit 5e0b1282f7
1 file changed
+1 -5
@@ -164,11 +164,7 @@ public class Faction implements IFaction {
}
public void addEnemyFaction(IFaction faction) {
if (this.attackFactions.contains(faction.getId())) {
throw new CustomNPCsException("Faction " + this.id + " is already hostile to " + id, new Object[0]);
} else {
this.attackFactions.add(faction.getId());
}
this.attackFactions.add(faction.getId());
}
public void removeEnemyFaction(IFaction faction) {