From 3d024951f985c05ec3f8ec133551022f92303650 Mon Sep 17 00:00:00 2001 From: desyncfy Date: Sun, 23 Jun 2024 17:04:32 -0700 Subject: [PATCH] Clean up code a bit more --- src/client/kotlin/chickenmanfy/scify/modules/Menu.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/kotlin/chickenmanfy/scify/modules/Menu.kt b/src/client/kotlin/chickenmanfy/scify/modules/Menu.kt index 2fefa8a..89bcef1 100644 --- a/src/client/kotlin/chickenmanfy/scify/modules/Menu.kt +++ b/src/client/kotlin/chickenmanfy/scify/modules/Menu.kt @@ -41,7 +41,7 @@ class Menu : Screen(Text.literal("SciFy Menu")) { .tooltip(Tooltip.of(Text.literal("Health bar similar to XP"))) .build() fishingNotif = ButtonWidget.builder(Text.literal("Fishing Notifications")) { - FishingNotif().toggleFishingNotif() // If toggleFishingNotif() is true, run the fishing notification script. + FishingNotif().toggleFishingNotif() // Call the function toggleFishingNotif() from the FishingNotif.kt module } .dimensions(width / 2 + 5, 84, 200, 20) .tooltip(Tooltip.of(Text.literal("Fishing Notifications"))) @@ -53,13 +53,13 @@ class Menu : Screen(Text.literal("SciFy Menu")) { .tooltip(Tooltip.of(Text.literal("Enable/Disable hotkeys."))) .build() autoWelcome = ButtonWidget.builder(Text.literal("Auto-Welcome")) { - AutoWelcome().toggleAutoWelcome() // Call the function toggleAutoWelcome() from the fishingnotif.kt module + AutoWelcome().toggleAutoWelcome() // Call the function toggleAutoWelcome() from the AutoWelcome.kt module } .dimensions(width / 2 - 205, 124, 200, 20) .tooltip(Tooltip.of(Text.literal("Automatically welcomes new players."))) .build() livelyMode = ButtonWidget.builder(Text.literal("City NPCs (Lively Mode)")) { - FishingNotif().toggleFishingNotif() // Call the function toggleFishingNotif() from the fishingnotif.kt module + LivelyMode().toggleLivelyMode() // Call the function toggleLivelyMode() from the LivelyMode.kt module } .dimensions(width / 2 - 205, 164, 200, 20) .tooltip(Tooltip.of(Text.literal("Replaces Villagers with player NPCs")))