Skip to content

Commit

Permalink
Fix boss bar config option not applying
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed May 27, 2024
1 parent f1ee81e commit 6ebf7dc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package mod.icarus.crimsonrevelations.entity.boss;

import mod.icarus.crimsonrevelations.core.CRConfig;
import mod.icarus.crimsonrevelations.init.LootTableHandler;
import net.minecraft.entity.IEntityLivingData;
import net.minecraft.entity.SharedMonsterAttributes;
Expand Down Expand Up @@ -54,13 +55,13 @@ protected void updateAITasks() {
@Override
public void removeTrackingPlayer(final EntityPlayerMP player) {
super.removeTrackingPlayer(player);
this.bossInfo.removePlayer(player);
if (CRConfig.TA_integration_settings.OVERGROWN_TAINTACLE_BOSS_BAR) this.bossInfo.removePlayer(player);
}

@Override
public void addTrackingPlayer(final EntityPlayerMP player) {
super.addTrackingPlayer(player);
this.bossInfo.addPlayer(player);
if (CRConfig.TA_integration_settings.OVERGROWN_TAINTACLE_BOSS_BAR) this.bossInfo.addPlayer(player);
}

// Fixes it spawning with lower health
Expand Down

0 comments on commit 6ebf7dc

Please sign in to comment.