Added config option for mobs ignoring player during the grace period.
This commit is contained in:
@ -8,6 +8,7 @@ public class Config {
|
||||
public static ForgeConfigSpec SERVER_CONFIG;
|
||||
|
||||
public static ForgeConfigSpec.BooleanValue POST_GRACE_ENABLED;
|
||||
public static ForgeConfigSpec.BooleanValue POST_GRACE_IGNORE_PLAYER_ENABLED;
|
||||
public static ForgeConfigSpec.IntValue POST_GRACE_DURATION;
|
||||
public static ForgeConfigSpec.BooleanValue POST_DROWN_ENABLED;
|
||||
public static ForgeConfigSpec.BooleanValue POST_WATER_ENABLED;
|
||||
@ -42,6 +43,9 @@ public class Config {
|
||||
POST_GRACE_DURATION = builder
|
||||
.comment("Grace period duration in seconds.")
|
||||
.defineInRange("graceDuration", 10, 1, Integer.MAX_VALUE/40);
|
||||
POST_GRACE_IGNORE_PLAYER_ENABLED = builder
|
||||
.comment("Whether mobs will ignore a player during their grace period.")
|
||||
.define("graceIgnorePlayerEnabled", true);
|
||||
builder.pop();
|
||||
builder.push("water_protection");
|
||||
POST_DROWN_ENABLED = builder
|
||||
|
||||
Reference in New Issue
Block a user