diff --git a/common/src/main/java/net/william278/huskhomes/request/RequestManager.java b/common/src/main/java/net/william278/huskhomes/request/RequestManager.java index dc1b3516..4bfdda4c 100644 --- a/common/src/main/java/net/william278/huskhomes/request/RequestManager.java +++ b/common/src/main/java/net/william278/huskhomes/request/RequestManager.java @@ -138,8 +138,9 @@ public class RequestManager { return false; } - // If the person already has a request from the sender by name, don't bother sending another one - if (getTeleportRequest(request.requesterName, recipient).isPresent()) { + // If the person already has a request of the same type by this player, don't bother sending another one + if (getTeleportRequest(request.requesterName, recipient).map(existingRequest -> existingRequest.type) + .orElse(null) == request.type) { return true; }