Skip to content

Commit

Permalink
fix: resolve "Hide If Not In-Game or Supported" always hiding hud ele…
Browse files Browse the repository at this point in the history
…ments (#5)
  • Loading branch information
xthe-dev authored Apr 14, 2023
1 parent b17dfdf commit 306d83e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class HeightLimit : Config(Mod("Height Limit", ModType.HUD, "/assets/evergreenhu
}

override fun shouldShow(): Boolean {
return super.shouldShow() && (!hide || (HypixelUtils.INSTANCE.isHypixel && LocrawUtil.INSTANCE.isInGame && LocrawUtil.INSTANCE.locrawInfo?.mapName?.isNotBlank() == true && PinkuluAPIManager.getMapHeight() == null)) && mc.thePlayer != null && mc.theWorld != null
return super.shouldShow() && (!hide || (HypixelUtils.INSTANCE.isHypixel && LocrawUtil.INSTANCE.isInGame && LocrawUtil.INSTANCE.locrawInfo?.mapName?.isNotBlank() == true && PinkuluAPIManager.getMapHeight() != null)) && mc.thePlayer != null && mc.theWorld != null
}
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/cc/polyfrost/evergreenhud/hud/MapType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapType : Config(Mod("Map Type", ModType.HUD, "/assets/evergreenhud/evergr
}

override fun shouldShow(): Boolean {
return super.shouldShow() && (!hide || (HypixelUtils.INSTANCE.isHypixel && LocrawUtil.INSTANCE.isInGame && LocrawUtil.INSTANCE.locrawInfo?.mapName?.isNotBlank() == true && PinkuluAPIManager.getMapPool() == null))
return super.shouldShow() && (!hide || (HypixelUtils.INSTANCE.isHypixel && LocrawUtil.INSTANCE.isInGame && LocrawUtil.INSTANCE.locrawInfo?.mapName?.isNotBlank() == true && PinkuluAPIManager.getMapPool() != null))
}
}
}

0 comments on commit 306d83e

Please sign in to comment.