Skip to content

Commit

Permalink
fix: within distance option not linked to override players option
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyTech99 committed Aug 14, 2024
1 parent 809e534 commit a5ab1d1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public class ModConfig {

@SerialEntry
@AutoGen(category = "filters", group = "advanced")
@MasterTickBox(value = "distance")
@MasterTickBox(value = {"override_players", "reach"})
public boolean within_distance = false;

@SerialEntry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public void render(T livingEntity, float yaw, float tickDelta, MatrixStack matri
else if (ModConfig.HANDLER.instance().indicator_type == HealthDisplayTypeEnum.NUMBER)
renderNumber(livingEntity, yaw, tickDelta, matrixStack, vertexConsumerProvider, light);
else if (ModConfig.HANDLER.instance().indicator_type == HealthDisplayTypeEnum.DYNAMIC) {
if(livingEntity.getMaxHealth() > 50) renderNumber(livingEntity, yaw, tickDelta, matrixStack, vertexConsumerProvider, light);
if(livingEntity.getMaxHealth() > 100) renderNumber(livingEntity, yaw, tickDelta, matrixStack, vertexConsumerProvider, light);
else renderHearts(livingEntity, yaw, tickDelta, matrixStack, vertexConsumerProvider, light);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


"yacl3.config.health-indicators:config.indicator_type": "Indicator Type",
"yacl3.config.health-indicators:config.indicator_type.desc": "Whether to render a floating hearts display or a number display.",
"yacl3.config.health-indicators:config.indicator_type.desc": "Whether to render a floating hearts display or a number display. Settings this to 'dynamic' will render hearts for entities with less than 100 health, and numbers for entities with more than 100 health.",

"yacl3.config.health-indicators:config.icons_per_row": "Hearts per row (beta)",

Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ logoFile = "assets/healthindicators/icon.png"
[[dependencies.healthindicators]]
modId = "neoforge"
type = "required"
versionRange = "[20.6,)"
versionRange = "[21.0,)"
ordering = "NONE"
side = "BOTH"

Expand Down

0 comments on commit a5ab1d1

Please sign in to comment.