diff --git a/src/main/java/dev/micle/loginprotection/network/C2SKeyPress.java b/src/main/java/dev/micle/loginprotection/network/C2SKeyPress.java index b623c25..7c0ce44 100755 --- a/src/main/java/dev/micle/loginprotection/network/C2SKeyPress.java +++ b/src/main/java/dev/micle/loginprotection/network/C2SKeyPress.java @@ -36,7 +36,7 @@ public class C2SKeyPress { sender.sendMessage(new TextComponent("[LoginProtection] Grace period started!"), sender.getUUID()); } if (sender.isInWater()) { - if (Config.Server.POST_DROWN_ENABLED.get()) { + if (Config.Server.POST_REFILL_AIR_ENABLED.get()) { sender.setAirSupply(sender.getMaxAirSupply()); } if (Config.Server.POST_WATER_ENABLED.get()) { diff --git a/src/main/java/dev/micle/loginprotection/setup/Config.java b/src/main/java/dev/micle/loginprotection/setup/Config.java index b20b50c..176b738 100644 --- a/src/main/java/dev/micle/loginprotection/setup/Config.java +++ b/src/main/java/dev/micle/loginprotection/setup/Config.java @@ -54,7 +54,7 @@ public final class 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_REFILL_AIR_ENABLED; public static ForgeConfigSpec.BooleanValue POST_WATER_ENABLED; public static ForgeConfigSpec.IntValue POST_WATER_DURATION; public static ForgeConfigSpec.BooleanValue POST_LAVA_ENABLED; @@ -124,7 +124,7 @@ public final class Config { .define("mobsIgnorePlayer", false); builder.pop(); builder.push("water_protection"); - POST_DROWN_ENABLED = builder + POST_REFILL_AIR_ENABLED = builder .comment("Whether a player's air supply gets refilled.") .define("refillAir", true); POST_WATER_ENABLED = builder