Renamed POST_DROWN_ENABLED to POST_REFILL_AIR_ENABLED.

This commit is contained in:
2022-05-21 19:11:10 +01:00
parent 4f5818ee2f
commit 82b7fd9c68
2 changed files with 3 additions and 3 deletions

View File

@ -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()) {

View File

@ -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