By default enderminies will no longer spawn in lit areas.

This commit is contained in:
CrazyPants committed 2014-10-14 15:57:14 +08:00
1 parent 8d7def45c7
commit 3aea5f05a2
2 files changed
+4 -3

No files matched your search

@@ -354,9 +354,8 @@ public final class Config {
public static int enderminyHealth = 20;
public static boolean enderminyGroupAgro = true;
public static int enderminyMaxGroupSize = 3;
public static boolean enderminySpawnInLitAreas = false;
public static void load(FMLPreInitializationEvent event) {
@@ -943,6 +942,8 @@ public final class Config {
"When true attacking one Enderminy will cause other Enderminies who witness the attack to attack the player as well");
enderminyMaxGroupSize= config.get(sectionMobConfig.name, "enderminyMaxGroupSize", enderminyMaxGroupSize,
"Maximum number of Enderminies that will spawn in a single group").getInt(enderminyMaxGroupSize);
enderminySpawnInLitAreas= config.getBoolean("enderminySpawnInLitAreas", sectionMobConfig.name, enderminySpawnInLitAreas,
"When true enderminies will spawn in well lit areas, when false they will only spawn in dark areas.");
}
private Config() {
@@ -82,7 +82,7 @@ public class EntityEnderminy extends EntityMob {
@Override
protected boolean isValidLightLevel() {
return true;
return Config.enderminySpawnInLitAreas ? true : super.isValidLightLevel();
}
protected void applyEntityAttributes() {