mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 21:32:19 +00:00
Faction:
-Removed unnecessary CustomNPCsException throw in addEnemyFaction.
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user