mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 14:38:53 +00:00
Permit sending differently typed requests
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user