Skip to content

Commit

Permalink
Merge pull request #2495 from BentoBoxWorld/develop
Browse files Browse the repository at this point in the history
Release 2.5.3 Bug Fix
  • Loading branch information
tastybento authored Sep 1, 2024
2 parents 97d42e4 + b461569 commit c503ae6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public boolean isInvited(@NonNull UUID invitee) {
if (handler.objectExists(invitee.toString())) {
@Nullable
TeamInvite invite = getInvite(invitee);
valid = getIslands().getIslandById(invite.getUniqueId()).map(island -> island.isOwned() // Still owned by someone
valid = getIslands().getIslandById(invite.getIslandID()).map(island -> island.isOwned() // Still owned by someone
&& !island.isDeleted() // Not deleted
&& island.getMemberSet().contains(invite.getInviter()) // the inviter is still a member of the island
).orElse(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public Collection<Island> getIslands() {
* @since 2.4.0
*/
public Island loadIsland(String uniqueId) {
return handler.loadObject(uniqueId);
return handler.objectExists(uniqueId) ? handler.loadObject(uniqueId) : null;
}

/**
Expand Down

0 comments on commit c503ae6

Please sign in to comment.