Fixed bug where team members did not yield advancements immediately.

After teleporting back to the island, the team would get them.

https://github.com/BentoBoxWorld/Boxed/issues/19
This commit is contained in:
tastybento 2021-04-18 14:36:52 -07:00
parent 5250a2056e
commit e8aeb0b31d

View File

@ -168,7 +168,7 @@ public class AdvancementsManager {
// 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);