Update BauMemberUpdate

This commit is contained in:
2024-12-22 22:13:25 +01:00
parent 9a506a34f8
commit ae15e16dae

View File

@ -21,7 +21,6 @@ package de.steamwar.bausystem.features.world;
import de.steamwar.bausystem.BauSystem;
import de.steamwar.bausystem.Permission;
import de.steamwar.bausystem.region.GlobalRegion;
import de.steamwar.bausystem.region.RegionSystem;
import de.steamwar.bausystem.utils.BauMemberUpdateEvent;
import de.steamwar.bausystem.utils.bossbar.BauSystemBossbar;
@ -76,7 +75,7 @@ public class BauMemberUpdate extends PacketHandler implements Listener {
SPECTATORS.remove(player);
newBuilder.add(player);
player.removePotionEffect(PotionEffectType.GLOWING);
BossBarService.instance.remove(player, GlobalRegion.getInstance(), "spectator");
BossBarService.instance.remove(player, RegionSystem.INSTANCE.getGlobalRegion(), "spectator");
}
}
});