Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
FDeathComponent: fix check for same types
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Aug 16, 2023
1 parent 731ad34 commit 1f93d26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public FDeathComponent(@NotNull ArrayList<String> placeholders, @NotNull Command
}
case "<due_to>" -> {
if (fDamager.getKiller() == null || fDamager.getKiller().equals(fDamager.getFinalEntity())
|| fDamager.getFinalEntity() != null && fDamager.getKiller().getType().equals(fDamager.getFinalEntity().getType())) {
|| (fDamager.getFinalEntity() != null && fDamager.getKiller().getType().equals(fDamager.getFinalEntity().getType()))) {
break;
}
String formatDueToMessage = locale.getFormatString("death.due-to", recipient, sender);
Expand Down

0 comments on commit 1f93d26

Please sign in to comment.