Skip to content

Commit

Permalink
Merge pull request #396 from Team-EnderIO/fix/soul-vial-bosses
Browse files Browse the repository at this point in the history
  • Loading branch information
Rover656 committed Jul 30, 2023
2 parents ddb7bb7 + 2be26fe commit f3947cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
"values": [
"#forge:bosses"
]
"values": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.entity.ai.attributes.DefaultAttributes;
import net.minecraftforge.common.Tags;
import net.minecraftforge.registries.ForgeRegistries;
import org.jetbrains.annotations.Nullable;

Expand Down Expand Up @@ -87,10 +88,6 @@ public static CapturableStatus getCapturableStatus(EntityType<? extends LivingEn
}

public static boolean isBlacklistedBoss(Entity entity) {
return EntityUtil.getEntityTypeRL(entity)
.map(resourceLocation ->
EntityUtil.isBoss(entity)
&& !"minecraft".equals(resourceLocation.getNamespace()))
.orElse(false);
return entity.getType().is(Tags.EntityTypes.BOSSES);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ public EIOEntityTagsProvider(PackOutput packOutput, CompletableFuture<HolderLook

@Override
protected void addTags(HolderLookup.Provider pProvider) {
this.tag(EIOTags.EntityTypes.SOUL_VIAL_BLACKLIST).addTag(Tags.EntityTypes.BOSSES);
this.tag(EIOTags.EntityTypes.SOUL_VIAL_BLACKLIST);
}
}

0 comments on commit f3947cc

Please sign in to comment.