Skip to content

Commit e9fa400

Browse files
authored
Fix: Remove unnecessary profile widget warnings (hannibal002#5703)
1 parent 54480b3 commit e9fa400

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/at/hannibal2/skyhanni/data/ProfileStorageData.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ object ProfileStorageData {
126126
noTabListTime = SimpleTimeMark.now()
127127
val foundSkyBlockTabList = TabWidget.AREA.isActive
128128
if (foundSkyBlockTabList) {
129+
if (HypixelData.profileName.isNotEmpty()) {
130+
ChatUtils.debug("Profile widget missing but we already got profile name, skipping warning")
131+
noTabListTime = SimpleTimeMark.farPast()
132+
return
133+
}
129134
ChatUtils.clickableChat(
130135
"§cCannot read profile name from tab list! Open /widget and make sure the Profile Widget " +
131136
"is enabled and visible.",

0 commit comments

Comments
 (0)