Skip to content

Commit

Permalink
Slightly update JER integration
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Aug 22, 2024
1 parent e1077dd commit c5170bf
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import mod.icarus.crimsonrevelations.init.CRLootTables;
import net.minecraft.world.World;
import net.minecraftforge.fml.common.Loader;
import thaumcraft.common.entities.monster.cult.EntityCultist;
import thaumcraft.common.entities.monster.cult.EntityCultistPortalLesser;

public class JERIntegration {
Expand All @@ -18,7 +19,14 @@ public static void init() {
World jerWorld = jerApi.getWorld();

jerMobRegistry.register(new EntityCultistPortalLesser(jerWorld), LightLevel.any, 40, CRLootTables.LESSER_CULTIST_PORTAL);

// These are already added by Just Enough Magiculture, so they'll immediately be turned off when detected
if (!Loader.isModLoaded("justenoughmagiculture")) {
jerMobRegistry.register(new EntityCultist(jerWorld), LightLevel.any, EntityCultist.LOOT);
}

// Thaumic Augmentation Integration
if (Loader.isModLoaded("thaumicaugmentation") && CRConfig.general_settings.TA_INTEGRATION)
jerMobRegistry.register(new EntityOvergrownTaintacle(jerWorld), LightLevel.any, new String[] {"Tainted Lands"}, CRLootTables.OVERGROWN_TAINTACLE);
jerMobRegistry.register(new EntityOvergrownTaintacle(jerWorld), LightLevel.any, new String[]{"Tainted Lands"}, CRLootTables.OVERGROWN_TAINTACLE);
}
}

0 comments on commit c5170bf

Please sign in to comment.