Renamed POST_DROWN_ENABLED to POST_REFILL_AIR_ENABLED.
This commit is contained in:
@ -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()) {
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user