Skip to content

Commit

Permalink
made all values default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
legoraft authored May 12, 2023
1 parent 33c8052 commit 32ffa71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/com/survivaltweaks/config.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@

public class config {

public static boolean SURVIVAL_DEBUG_STICK = true;
public static boolean NO_EXPENSIVE = true;
public static boolean SURVIVAL_DEBUG_STICK = false;
public static boolean NO_EXPENSIVE = false;
public static boolean CHEAP_RENAME = false;

private static final Path CONFIG_PATH = FabricLoader.getInstance().getConfigDir().resolve("survivaltweaks.properties");

public void write(Properties properties) {
properties.setProperty("survival_debug_stick", Boolean.toString(SURVIVAL_DEBUG_STICK));
properties.setProperty("no_too_expensive", Boolean.toString(NO_EXPENSIVE));
properties.setProperty("cheap_rename", Boolean.toString(CHEAP_RENAME));
}

public void read(Properties properties) {
SURVIVAL_DEBUG_STICK = Boolean.parseBoolean(properties.getProperty("survival_debug_stick"));
NO_EXPENSIVE = Boolean.parseBoolean(properties.getProperty("no_too_expensive"));
CHEAP_RENAME = Boolean.parseBoolean(properties.getProperty("cheap_rename"));
}

public void save() {
Expand Down

0 comments on commit 32ffa71

Please sign in to comment.