Skip to content

Commit

Permalink
Fixed bug where team members did not yield advancements immediately.
Browse files Browse the repository at this point in the history
After teleporting back to the island, the team would get them.

#19
  • Loading branch information
tastybento committed Apr 18, 2021
1 parent 5250a20 commit e8aeb0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public int addAdvancement(Player p, Advancement advancement) {
// Get island
Island island = addon.getIslands().getIsland(addon.getOverWorld(), p.getUniqueId());
if (island != null
&& island.getRank(p.getUniqueId()) > RanksManager.MEMBER_RANK // Only island members expand island
&& island.getRank(p.getUniqueId()) >= RanksManager.MEMBER_RANK // Only island members expand island
&& addAdvancement(island, advancement.getKey().toString())) {
int oldSize = island.getProtectionRange();
int newSize = Math.max(1, oldSize + score);
Expand Down

0 comments on commit e8aeb0b

Please sign in to comment.