Skip to content

Commit 76cf30e

Browse files
committed
Only filtering when the player is this player for create hints
1 parent e5013d4 commit 76cf30e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/github/archipelagomw/Client.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,8 +862,10 @@ public APResult<Void> createHints(List<Long> locations, int player, HintStatus s
862862
if(ret.getCode() == APResult.ResultCode.SUCCESS)
863863
{
864864
ArrayList<Long> sendMe = new ArrayList<>();
865-
locations.stream().filter(location -> locationManager.getMissingLocations().contains(location))
866-
.forEach(sendMe::add);
865+
if(player == this.slot) {
866+
locations.stream().filter(location -> locationManager.getMissingLocations().contains(location))
867+
.forEach(sendMe::add);
868+
}
867869
if(locations.isEmpty())
868870
{
869871
LOGGER.fine("Locations provided for create hint all either checked or do not exist");

0 commit comments

Comments
 (0)