mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2024-09-27 04:02:34 +02:00
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:
parent
5250a2056e
commit
e8aeb0b31d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user