Skip to content

Commit

Permalink
Origins: Move code out of ifPresent check.
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Mar 13, 2024
1 parent b7fa78a commit cf57ddf
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public void setOriginInternal(@NotNull OriginLayer layer, @NotNull Origin origin
this.grantPowers(container, origin);
if (previous != null)
container.removeAllPowersFromSource(OriginsAPI.getPowerSource(previous));
if (this.hasAllOrigins())
this.hadAllOrigins.set(true);
if (this.player instanceof ServerPlayer sp)
ChoseOriginCriterion.INSTANCE.trigger(sp, origin);
});
if (this.hasAllOrigins())
this.hadAllOrigins.set(true);
if (this.player instanceof ServerPlayer sp)
ChoseOriginCriterion.INSTANCE.trigger(sp, origin);
}
this.synchronize();
}
Expand Down

0 comments on commit cf57ddf

Please sign in to comment.