diff --git a/src/main/java/com/micle/loginprotection/events/OnLivingSetAttackTargetEvent.java b/src/main/java/com/micle/loginprotection/events/OnLivingSetAttackTargetEvent.java index 27be596..6e7f929 100644 --- a/src/main/java/com/micle/loginprotection/events/OnLivingSetAttackTargetEvent.java +++ b/src/main/java/com/micle/loginprotection/events/OnLivingSetAttackTargetEvent.java @@ -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); } diff --git a/src/main/java/com/micle/loginprotection/setup/Config.java b/src/main/java/com/micle/loginprotection/setup/Config.java index de7f5e5..a842936 100644 --- a/src/main/java/com/micle/loginprotection/setup/Config.java +++ b/src/main/java/com/micle/loginprotection/setup/Config.java @@ -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");