Skip to content

Commit

Permalink
change: remove obsolete code
Browse files Browse the repository at this point in the history
This has not been relevant since Essential's full release, from what I can tell
  • Loading branch information
calcastor committed Aug 31, 2023
1 parent 3f740b4 commit a4f6cb1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/java/club/sk1er/patcher/screen/PatcherMenuEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4f6cb1

Please sign in to comment.