diff --git a/src/main/java/com/leobeliik/extremesoundmuffler/Config.java b/src/main/java/com/leobeliik/extremesoundmuffler/Config.java index c7a4fdf..d2bec13 100644 --- a/src/main/java/com/leobeliik/extremesoundmuffler/Config.java +++ b/src/main/java/com/leobeliik/extremesoundmuffler/Config.java @@ -66,14 +66,14 @@ private static void buildConfig() { 75, Integer.MIN_VALUE, Integer.MAX_VALUE, - "Coordinates for the Muffler button in the player inventory. You can change this in game by holding the RMB over the button and draging it around"); + "Coordinates of the Muffler button in the player inventory. You can change this in game by holding CTRL and LMB over the button and dragging it around"); invButtonVertical = config.getInt( "invButtonY", CATEGORY_INVENTORY_BUTTON, 7, Integer.MIN_VALUE, Integer.MAX_VALUE, - "Coordinates for the Muffler button in the player inventory. You can change this in game by holding the RMB over the button and draging it around"); + "Coordinates of the Muffler button in the player inventory. You can change this in game by holding CTRL and LMB over the button and dragging it around"); disableAnchors = config.getBoolean("disableAnchors", CATEGORY_ANCHORS, false, "Disable the Anchors?"); config.save(); } @@ -94,8 +94,8 @@ public static boolean getLawfulAllList() { return lawfulAllList; } - public static boolean getDisableAchors() { - return false; + public static boolean getDisableAnchors() { + return disableAnchors; } public static float getDefaultMuteVolume() { diff --git a/src/main/java/com/leobeliik/extremesoundmuffler/gui/MainScreen.java b/src/main/java/com/leobeliik/extremesoundmuffler/gui/MainScreen.java index 04219ca..61c6f60 100644 --- a/src/main/java/com/leobeliik/extremesoundmuffler/gui/MainScreen.java +++ b/src/main/java/com/leobeliik/extremesoundmuffler/gui/MainScreen.java @@ -47,7 +47,7 @@ public class MainScreen extends GuiScreen implements ISoundLists, IColorsGui { private static String screenTitle = ""; private final int xSize = 256; private final int ySize = 202; - private final boolean isAnchorsDisabled = Config.getDisableAchors(); + private final boolean isAnchorsDisabled = Config.getDisableAnchors(); private final String tip = Tips.randomTip(); private int minYButton, maxYButton, index; private ESMButton btnToggleMuffled; diff --git a/src/main/java/com/leobeliik/extremesoundmuffler/mixins/minecraft/SoundMixin.java b/src/main/java/com/leobeliik/extremesoundmuffler/mixins/minecraft/SoundMixin.java index b9bc0e1..d172292 100644 --- a/src/main/java/com/leobeliik/extremesoundmuffler/mixins/minecraft/SoundMixin.java +++ b/src/main/java/com/leobeliik/extremesoundmuffler/mixins/minecraft/SoundMixin.java @@ -46,7 +46,7 @@ private float checkSound(float original, @Local(ordinal = 0, argsOnly = true) IS return original * muffledSounds.get(soundLocation); } - if (Config.getDisableAchors()) { + if (Config.getDisableAnchors()) { return original; } diff --git a/src/main/java/com/leobeliik/extremesoundmuffler/utils/DataManager.java b/src/main/java/com/leobeliik/extremesoundmuffler/utils/DataManager.java index bd8337b..a1b855c 100644 --- a/src/main/java/com/leobeliik/extremesoundmuffler/utils/DataManager.java +++ b/src/main/java/com/leobeliik/extremesoundmuffler/utils/DataManager.java @@ -50,7 +50,7 @@ public class DataManager implements ISoundLists { public static void loadData(String address) { identifier = getIdentifier(address); loadMuffledMap().forEach((R, F) -> muffledSounds.put(new ComparableResource(R), F)); - if (!Config.getDisableAchors()) { + if (!Config.getDisableAnchors()) { anchorList.clear(); anchorList.addAll(loadAnchors()); } @@ -59,7 +59,7 @@ public static void loadData(String address) { public static void saveData() { saveMuffledMap(); - if (!Config.getDisableAchors()) { + if (!Config.getDisableAnchors()) { saveAnchors(); } }