From a4f6cb1f881d50b0c9879b98c69331bad6fa3b81 Mon Sep 17 00:00:00 2001 From: "BT (calcastor/mame)" <43831917+calcastor@users.noreply.github.com> Date: Thu, 15 Jun 2023 03:14:23 -0700 Subject: [PATCH] change: remove obsolete code This has not been relevant since Essential's full release, from what I can tell --- .../sk1er/patcher/screen/PatcherMenuEditor.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java b/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java index b15abb42f..23a7131ab 100644 --- a/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java +++ b/src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java @@ -166,19 +166,6 @@ public void drawMenu(GuiScreenEvent.DrawScreenEvent.Post event) { realmsButton.enabled = false; } } - - if (PatcherConfig.openToLanReplacement == 2 && gui instanceof GuiIngameMenu) { - EssentialConfig config = EssentialAPI.getConfig(); - if (config.getOpenToFriends() && config.getEssentialFull() && EssentialAPI.getOnboardingData().hasAcceptedEssentialTOS()) { - for (GuiButton button : mcButtonList) { - if (button != null && button.displayString.equals("Invite Friends")) { - button.width = 200; - button.xPosition = (gui.width / 2) - 100; - break; - } - } - } - } } @SubscribeEvent