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

Commit

Permalink
Death: fix player component
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFaser committed Dec 25, 2023
1 parent bda7ca4 commit f6dff1e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ public void sendMessage(@NotNull Player sender, @Nullable Player player, @NotNul
public void createEntityComponent(@NotNull Player sender, @Nullable Player player, @Nullable Entity entity, @NotNull ComponentBuilder componentBuilder, String color) {
if (entity == null) return;

if (entity instanceof Player) {
componentBuilder.append(new FPlayerComponent(player, entity, color + entity.getName()).get());
if (entity instanceof Player entityPlayer) {
componentBuilder.append(new FPlayerComponent(entityPlayer, player, color + entity.getName()).get());
return;
}

Expand Down

0 comments on commit f6dff1e

Please sign in to comment.