Skip to content

Commit

Permalink
Hide Pet Health
Browse files Browse the repository at this point in the history
See #350
  • Loading branch information
My-Name-Is-Jeff committed Mar 21, 2023
1 parent 1bf3609 commit b68acb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,13 @@ object Config : Vigilant(
)
var hideDeathParticles = false

@Property(
type = PropertyType.SWITCH, name = "Hide Pet Health Display",
description = "Hides the Vanilla pet hearts.",
category = "Miscellaneous", subcategory = "Quality of Life"
)
var hidePetHealth = false

@Property(
type = PropertyType.SWITCH, name = "Hide Potion Effects in Inventory",
description = "Prevents the game from rendering the potion effects in inventories while in Skyblock.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ object MiscFeatures {
event.isCanceled = true
} else if (event.type == RenderGameOverlayEvent.ElementType.HEALTH && Skytils.config.hideHealthDisplay) {
event.isCanceled = true
} else if (event.type == RenderGameOverlayEvent.ElementType.HEALTHMOUNT && Skytils.config.hidePetHealth) {
event.isCanceled = true
}
}

Expand Down

0 comments on commit b68acb0

Please sign in to comment.