Key monolith behavior in to config file

This commit is contained in:
CannibalVox 2015-03-10 04:20:29 -05:00
parent c72a03b558
commit 7c11003686
2 changed files with 5 additions and 1 deletions

View file

@ -64,6 +64,7 @@ public class DDProperties
public final boolean DoorRenderingEnabled; public final boolean DoorRenderingEnabled;
public final boolean TNFREAKINGT_Enabled; public final boolean TNFREAKINGT_Enabled;
public final boolean MonolithTeleportationEnabled; public final boolean MonolithTeleportationEnabled;
public final boolean DangerousLimboMonolithsDisabled;
/** /**
@ -160,6 +161,9 @@ public class DDProperties
MonolithTeleportationEnabled = config.get(Configuration.CATEGORY_GENERAL, "Enable Monolith Teleportation", true, MonolithTeleportationEnabled = config.get(Configuration.CATEGORY_GENERAL, "Enable Monolith Teleportation", true,
"Sets whether Monoliths can teleport players").getBoolean(true); "Sets whether Monoliths can teleport players").getBoolean(true);
DangerousLimboMonolithsDisabled = config.get(Configuration.CATEGORY_GENERAL, "Docile Monoliths in Limbo", true,
"Sets whether monoliths in Limbo stare at the player rather than attack").getBoolean(true);
MonolithSpawningChance = config.get(Configuration.CATEGORY_GENERAL, "Monolith Spawning Chance", 28, MonolithSpawningChance = config.get(Configuration.CATEGORY_GENERAL, "Monolith Spawning Chance", 28,
"Sets the chance (out of " + CustomLimboPopulator.MAX_MONOLITH_SPAWNING_CHANCE + ") that Monoliths will " + "Sets the chance (out of " + CustomLimboPopulator.MAX_MONOLITH_SPAWNING_CHANCE + ") that Monoliths will " +

View file

@ -51,7 +51,7 @@ public class MobMonolith extends EntityFlying implements IMob
} }
public boolean isDangerous() { public boolean isDangerous() {
return properties.LimboDimensionID != worldObj.provider.dimensionId; return properties.MonolithTeleportationEnabled && (properties.LimboDimensionID != worldObj.provider.dimensionId || !properties.DangerousLimboMonolithsDisabled);
} }
@Override @Override