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 TNFREAKINGT_Enabled;
public final boolean MonolithTeleportationEnabled;
public final boolean DangerousLimboMonolithsDisabled;
/**
@ -161,6 +162,9 @@ public class DDProperties
MonolithTeleportationEnabled = config.get(Configuration.CATEGORY_GENERAL, "Enable Monolith Teleportation", 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,
"Sets the chance (out of " + CustomLimboPopulator.MAX_MONOLITH_SPAWNING_CHANCE + ") that Monoliths will " +
"spawn in a given Limbo chunk. The default chance is 28.").getInt();

View file

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