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

Commit

Permalink
FCommand: fix that player does not see his action when using command …
Browse files Browse the repository at this point in the history
…local
  • Loading branch information
TheFaser committed Sep 27, 2023
1 parent 41bde3b commit 85f48d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/flectone/misc/commands/FCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ public Collection<Player> getFilteredListRecipient(Collection<Player> playerSet)
.filter(entity -> entity instanceof Player player1 && finalPlayerSet.contains(player1))
.map(entity -> (Player) entity)
.collect(Collectors.toSet());

if (!playerSet.contains(player)) playerSet.add(player);
}

playerSet = playerSet.parallelStream()
Expand Down

0 comments on commit 85f48d1

Please sign in to comment.