From a85403cfd16da0134fbe6fb31a37761657e1119a Mon Sep 17 00:00:00 2001 From: hannibal00212 Date: Fri, 15 Jul 2022 17:41:41 +0000 Subject: Prettified Code! --- .../at/hannibal2/skyhanni/config/Features.java | 5 +--- .../skyhanni/config/commands/Commands.java | 30 ++++++++++++++-------- 2 files changed, 21 insertions(+), 14 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/config') diff --git a/src/main/java/at/hannibal2/skyhanni/config/Features.java b/src/main/java/at/hannibal2/skyhanni/config/Features.java index 4120d6581..9ddcb3250 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/Features.java +++ b/src/main/java/at/hannibal2/skyhanni/config/Features.java @@ -13,9 +13,7 @@ import net.minecraft.client.Minecraft; public class Features { private void editOverlay(String activeConfig, int width, int height, Position position) { - Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> { - }, () -> { - }, () -> SkyHanniMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(SkyHanniMod.feature, activeConfig)))); + Minecraft.getMinecraft().displayGuiScreen(new GuiPositionEditor(position, width, height, () -> {}, () -> {}, () -> SkyHanniMod.screenToOpen = new GuiScreenElementWrapper(new ConfigEditor(SkyHanniMod.feature, activeConfig)))); } public void executeRunnable(String runnableId) { @@ -305,7 +303,6 @@ public class Features { @ConfigOption(name = "Repo Auto Update", desc = "Update the repository on every startup.") @ConfigEditorBoolean public boolean repoAutoUpdate = true; - } public static class Debug { diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.java b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.java index 8f3b798f1..c2b60515f 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.java +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.java @@ -23,16 +23,26 @@ public class Commands { ClientCommandHandler.instance.registerCommand(new SimpleCommand("sh", mainMenu)); ClientCommandHandler.instance.registerCommand(new SimpleCommand("skyhanni", mainMenu)); - ClientCommandHandler.instance.registerCommand(new SimpleCommand("shreloadlocalrepo", new SimpleCommand.ProcessCommandRunnable() { - public void processCommand(ICommandSender sender, String[] args) { - SkyHanniMod.repo.reloadLocalRepo(); - } - })); + ClientCommandHandler.instance.registerCommand( + new SimpleCommand( + "shreloadlocalrepo", + new SimpleCommand.ProcessCommandRunnable() { + public void processCommand(ICommandSender sender, String[] args) { + SkyHanniMod.repo.reloadLocalRepo(); + } + } + ) + ); - ClientCommandHandler.instance.registerCommand(new SimpleCommand("shupdaterepo", new SimpleCommand.ProcessCommandRunnable() { - public void processCommand(ICommandSender sender, String[] args) { - SkyHanniMod.repo.updateRepo(); - } - })); + ClientCommandHandler.instance.registerCommand( + new SimpleCommand( + "shupdaterepo", + new SimpleCommand.ProcessCommandRunnable() { + public void processCommand(ICommandSender sender, String[] args) { + SkyHanniMod.repo.updateRepo(); + } + } + ) + ); } } -- cgit