File tree Expand file tree Collapse file tree
src/main/java/io/icker/factions Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ public Relationship getRelationship(UUID target) {
227227 return relationships .stream ()
228228 .filter (rel -> rel .target .equals (target ))
229229 .findFirst ()
230- .orElse (new Relationship (target , Relationship .Status .NEUTRAL ));
230+ .orElse (new Relationship (this , target , Relationship .Status .NEUTRAL ));
231231 }
232232
233233 public Relationship getReverse (Relationship rel ) {
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ private int updateRelationship(
7272 mutual = sourceFaction .getRelationship (targetFaction .getID ()).status ;
7373 }
7474
75- Relationship rel = new Relationship (targetFaction .getID (), status );
75+ Relationship rel = new Relationship (sourceFaction , targetFaction .getID (), status );
7676 Relationship rev = targetFaction .getRelationship (sourceFaction .getID ());
7777 sourceFaction .setRelationship (rel );
7878
You can’t perform that action at this time.
0 commit comments