Skip to content

Commit

Permalink
Remove unused code and change translation (#1117)
Browse files Browse the repository at this point in the history
The keybind for "Screen B" was not used anywhere and the translation
string was confusing with the new system
  • Loading branch information
AzureAaron authored Jan 2, 2025
1 parent 18ec59c commit 30d8f6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
14 changes: 0 additions & 14 deletions src/main/java/de/hysky/skyblocker/skyblock/tabhud/TabHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,13 @@
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import org.lwjgl.glfw.GLFW;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TabHud {

public static KeyBinding toggleB;
public static KeyBinding toggleSecondary;
// public static KeyBinding mapTgl;
public static KeyBinding defaultTgl;

public static final Logger LOGGER = LoggerFactory.getLogger("Skyblocker Tab HUD");

@Init
public static void init() {

toggleB = KeyBindingHelper.registerKeyBinding(
new KeyBinding("key.skyblocker.toggleB",
InputUtil.Type.KEYSYM,
GLFW.GLFW_KEY_B,
"key.categories.skyblocker"));
toggleSecondary = KeyBindingHelper.registerKeyBinding(
new KeyBinding("key.skyblocker.toggleA",
InputUtil.Type.KEYSYM,
Expand All @@ -35,6 +22,5 @@ public static void init() {
InputUtil.Type.KEYSYM,
GLFW.GLFW_KEY_M,
"key.categories.skyblocker"));

}
}
3 changes: 1 addition & 2 deletions src/main/resources/assets/skyblocker/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@

"key.categories.skyblocker": "Skyblocker",
"key.hotbarSlotLock": "Slot Lock (Hotbar)",
"key.skyblocker.toggleB": "Toggle tab HUD to screen B",
"key.skyblocker.defaultTgl": "Switch tab HUD to default view",
"key.skyblocker.toggleA": "Toggle tab HUD to screen A",
"key.skyblocker.toggleA": "Show tab HUD secondary view",
"key.skyblocker.debug.dumpNearbyEntities": "Dump Nearby Entities",
"key.skyblocker.debug.dumpHoveredItem": "Dump Hovered Item",
"key.wikiLookup": "Wiki Lookup",
Expand Down

0 comments on commit 30d8f6e

Please sign in to comment.