Skip to content

Commit

Permalink
Fixes an issue with detecting "unlocked" biomes on login.
Browse files Browse the repository at this point in the history
The issue was with incorrect equality check for island owner.
  • Loading branch information
BONNe committed Jul 12, 2022
1 parent bd19401 commit 5d62840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public void loadUserIslands(UUID uniqueId)
filter(Objects::nonNull).
forEach(island ->
{
if (island.getOwner() == uniqueId)
if (uniqueId.equals(island.getOwner()))
{
// Owner island must be validated.
this.validateIslandData(island, User.getInstance(uniqueId));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private PanelItem createButton(Button button)

for (UUID uuid : members)
{
if (uuid != this.island.getOwner())
if (!uuid.equals(this.island.getOwner()))
{
builder.append("\n").append(this.user.getTranslation(reference + "value",
Constants.PARAMETER_PLAYER, this.addon.getPlayers().getName(uuid)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ protected PanelItem createElementButton(Island island)

for (UUID uuid : members)
{
if (uuid != island.getOwner())
if (!uuid.equals(island.getOwner()))
{
builder.append("\n").append(this.user.getTranslation(reference + "element",
Constants.PARAMETER_PLAYER, this.addon.getPlayers().getName(uuid)));
Expand Down

0 comments on commit 5d62840

Please sign in to comment.