Permit sending differently typed requests

This commit is contained in:
William committed 2022-08-29 13:28:01 +01:00
1 parent 1c1cbecda3
commit c7f3835ae2
1 file changed
+3 -2
@@ -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;
}