Skip to content

Commit

Permalink
revert assert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CitralFlo committed Oct 12, 2023
1 parent a94e520 commit ca80c71
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public void onTag(FightTagEvent event) {

Player player = this.server.getPlayer(event.getPlayer());

assert player != null;
if(player == null) {
return;
}

this.effectSettings.customEffects.forEach((key, value) ->
this.effectService.applyCustomEffect(player, key, value));
Expand Down Expand Up @@ -63,7 +65,9 @@ public void onUntag(FightUntagEvent event) {

Player player = this.server.getPlayer(event.getPlayer());

assert player != null;
if (player == null) {
return;
}

this.effectSettings.customEffects.forEach((key, value) -> this.effectService.removeCustomEffect(player, key, value));

Expand Down

0 comments on commit ca80c71

Please sign in to comment.