Fixed dumb wording mistake.
This commit is contained in:
@ -13,7 +13,7 @@ public class OnLivingSetAttackTargetEvent {
|
||||
if (!(event.getTarget() instanceof Player target)) { return; }
|
||||
|
||||
if (LoginProtection.protected_players.getPlayer(target.getUUID()) == null) { return; }
|
||||
if (!Config.MAIN_PLAYER_TARGET_ENABLED.get()) { return; }
|
||||
if (!Config.MAIN_IGNORE_PLAYER_ENABLED.get()) { return; }
|
||||
((Mob) event.getEntityLiving()).setTarget(null);
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ public class Config {
|
||||
public static ForgeConfigSpec.BooleanValue POST_FIRE_ENABLED;
|
||||
public static ForgeConfigSpec.IntValue POST_FIRE_DURATION;
|
||||
|
||||
public static ForgeConfigSpec.BooleanValue MAIN_PLAYER_TARGET_ENABLED;
|
||||
public static ForgeConfigSpec.BooleanValue MAIN_IGNORE_PLAYER_ENABLED;
|
||||
|
||||
public static void init() {
|
||||
initServer();
|
||||
@ -29,9 +29,9 @@ public class Config {
|
||||
ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
|
||||
|
||||
builder.comment("Main protection settings for protecting inactive (loading) players.").push("main");
|
||||
MAIN_PLAYER_TARGET_ENABLED = builder
|
||||
.comment("Whether mobs will still target/attack a protected player.")
|
||||
.define("playerTargetEnabled", true);
|
||||
MAIN_IGNORE_PLAYER_ENABLED = builder
|
||||
.comment("Whether mobs will ignore a protected player. (They will not attack/aggro)")
|
||||
.define("ignorePlayerEnabled", true);
|
||||
builder.pop();
|
||||
|
||||
builder.comment("Additional protection settings that apply as soon as a player becomes active.").push("post");
|
||||
|
||||
Reference in New Issue
Block a user