Fixed dumb wording mistake.

This commit is contained in:
2021-09-29 01:29:29 +01:00
parent 593af0a591
commit 916a0c888a
2 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ public class OnLivingSetAttackTargetEvent {
if (!(event.getTarget() instanceof Player target)) { return; } if (!(event.getTarget() instanceof Player target)) { return; }
if (LoginProtection.protected_players.getPlayer(target.getUUID()) == null) { 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); ((Mob) event.getEntityLiving()).setTarget(null);
} }

View File

@ -17,7 +17,7 @@ public class Config {
public static ForgeConfigSpec.BooleanValue POST_FIRE_ENABLED; public static ForgeConfigSpec.BooleanValue POST_FIRE_ENABLED;
public static ForgeConfigSpec.IntValue POST_FIRE_DURATION; 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() { public static void init() {
initServer(); initServer();
@ -29,9 +29,9 @@ public class Config {
ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder(); ForgeConfigSpec.Builder builder = new ForgeConfigSpec.Builder();
builder.comment("Main protection settings for protecting inactive (loading) players.").push("main"); builder.comment("Main protection settings for protecting inactive (loading) players.").push("main");
MAIN_PLAYER_TARGET_ENABLED = builder MAIN_IGNORE_PLAYER_ENABLED = builder
.comment("Whether mobs will still target/attack a protected player.") .comment("Whether mobs will ignore a protected player. (They will not attack/aggro)")
.define("playerTargetEnabled", true); .define("ignorePlayerEnabled", true);
builder.pop(); builder.pop();
builder.comment("Additional protection settings that apply as soon as a player becomes active.").push("post"); builder.comment("Additional protection settings that apply as soon as a player becomes active.").push("post");