Skip to content

Commit

Permalink
Move dim blacklist config to AlchemicalWizardry.java
Browse files Browse the repository at this point in the history
  • Loading branch information
DianeXD committed Aug 12, 2022
1 parent 04baecf commit 5b1be24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ public Item getTabIconItem()
public static String entityMinorDemonGruntGuardianEarthID = "AW024";

public static boolean isDemonRitualCreativeOnly = false;
public static int[] demonRitualDimensionBlacklist = new int[]{0};

public static Fluid lifeEssenceFluid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public static void syncConfig()
TEDemonPortal.demonLimit = config.get(tempDemonConfigs, "demonHoardLimit", 100).getInt();

AlchemicalWizardry.isDemonRitualCreativeOnly = config.get(tempDemonConfigs, "IsDemonRitualCreativeOnly", false).getBoolean();
RitualEffectDemonPortal.dimensionBlacklist = config.get(tempDemonConfigs, "dimension blacklist for the demon portal activation", new int[]{0}).getIntList();
AlchemicalWizardry.demonRitualDimensionBlacklist = config.get(tempDemonConfigs, "dimension blacklist for the demon portal activation", new int[]{0}).getIntList();
BoundArmour.tryComplexRendering = config.get("WimpySettings", "UseFancyBoundArmour", true).getBoolean(true);

// ItemIncense.itemDuration = config.get("TestIncenseSettings", "ItemDuration", 100).getInt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class RitualEffectDemonPortal extends RitualEffect
public static final int drainRate = 50;
public static final Reagent[] reagents = new Reagent[]{ReagentRegistry.aetherReagent, ReagentRegistry.aquasalusReagent, ReagentRegistry.terraeReagent, ReagentRegistry.incendiumReagent, ReagentRegistry.sanctusReagent, ReagentRegistry.tenebraeReagent, ReagentRegistry.magicalesReagent, ReagentRegistry.potentiaReagent};
public static final Int3[] jarLocations = new Int3[]{new Int3(4, 5, 4), new Int3(-4, 5, 4), new Int3(4, 5, -4), new Int3(-4, 5, -4), new Int3(0, 5, 6), new Int3(0, 5, -6), new Int3(6, 5, 0), new Int3(-6, 5, 0)};
public static int[] dimensionBlacklist = new int[]{0};

@Override
public void performEffect(IMasterRitualStone ritualStone)
{
Expand Down Expand Up @@ -123,7 +123,7 @@ public void createRandomLightning(World world, int x, int y, int z)
@Override
public boolean startRitual(IMasterRitualStone ritualStone, EntityPlayer player)
{
for (int dim: dimensionBlacklist){
for (int dim : AlchemicalWizardry.demonRitualDimensionBlacklist) {
if (player.dimension == dim) return false;
}

Expand Down

0 comments on commit 5b1be24

Please sign in to comment.