Skip to content

Commit

Permalink
added double_hotbar config option
Browse files Browse the repository at this point in the history
  • Loading branch information
legoraft authored May 13, 2023
1 parent afba98a commit 5987fea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/client/java/com/armorhud/config.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@
public class config {

public static boolean BETTER_MOUNT_HUD = false;
public static boolean DOUBLE_HOTBAR = false;

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

public void write(Properties properties) {
properties.setProperty("better_mount_hud", Boolean.toString(BETTER_MOUNT_HUD));
properties.setProperty("double_hotbar", Boolean.toString(DOUBLE_HOTBAR));
}

public void read(Properties properties) {
BETTER_MOUNT_HUD = Boolean.parseBoolean(properties.getProperty("better_mount_hud"));
DOUBLE_HOTBAR = Boolean.parseBoolean(properties.getProperty("double_hotbar"));
}

public void save() {
Expand Down

0 comments on commit 5987fea

Please sign in to comment.