HE Abilities can now be disabled
This commit is contained in:
parent
253245a202
commit
20925a8893
|
@ -13,6 +13,7 @@ public class ConfigHandler {
|
|||
public static float size;
|
||||
public static int soulWorldID;
|
||||
public static boolean snapCreative;
|
||||
public static boolean heAbilities;
|
||||
|
||||
public static void refreshConfig(File file) {
|
||||
config = new Configuration(file);
|
||||
|
@ -31,6 +32,7 @@ public class ConfigHandler {
|
|||
size = config.getFloat("Size", category, 0.1f, 0.1f,10, "Which size should the Reality Stone change it's user to");
|
||||
soulWorldID = config.getInt("Soul World ID", category, 10, -255, 255, "The ID of the Soul World Dimension");
|
||||
snapCreative = config.getBoolean("Can Snap change Gamemode", category, false, "Can the Snap change the Gamemode to Creative");
|
||||
heAbilities = config.getBoolean("HeroesExpansion Abilities", category, true, "Should some stones use abilities from HeroesExpansion");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ package anvil.infinity.items;
|
|||
import anvil.infinity.abilities.AbilityChangeSnap;
|
||||
import anvil.infinity.abilities.AbilityHasMindStone;
|
||||
import anvil.infinity.compat.CompatHandler;
|
||||
import anvil.infinity.config.ConfigHandler;
|
||||
import lucraft.mods.lucraftcore.infinity.EnumInfinityStone;
|
||||
import lucraft.mods.lucraftcore.infinity.ModuleInfinity;
|
||||
import lucraft.mods.lucraftcore.infinity.items.ItemInfinityStone;
|
||||
|
@ -37,7 +38,7 @@ public class ItemMindStone extends ItemInfinityStone {
|
|||
abilities.put("flight", new AbilityFlight(entity).setDataValue(AbilityFlight.SPEED, 1f));
|
||||
abilities.put("mind", new AbilityHasMindStone(entity));
|
||||
abilities.put("changesnap", new AbilityChangeSnap(entity));
|
||||
if (CompatHandler.isHeroesExpansion) {
|
||||
if (CompatHandler.isHeroesExpansion && ConfigHandler.heAbilities) {
|
||||
abilities.put("telekinesis", CompatHandler.HeroesExpension.getAbilityGrabEntity(entity));
|
||||
}
|
||||
return super.addStoneAbilities(entity, abilities, context);
|
||||
|
|
Loading…
Reference in New Issue