Skip to content

Commit

Permalink
Make constructor private and force usage of builder for StatusEffectH…
Browse files Browse the repository at this point in the history
…eart
  • Loading branch information
Terrails committed May 4, 2024
1 parent 7f65aca commit 0815bfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StatusEffectHeart {
private final Predicate<Player> condition;
private final List<HeartDrawing> healthDrawings, absorptionDrawings;

public StatusEffectHeart(ResourceLocation id, Predicate<Player> condition, HeartDrawing h1, HeartDrawing h2, HeartDrawing a1, HeartDrawing a2) {
StatusEffectHeart(ResourceLocation id, Predicate<Player> condition, HeartDrawing h1, HeartDrawing h2, HeartDrawing a1, HeartDrawing a2) {
this.id = id;
this.condition = condition;
this.healthDrawings = List.of(h1, h2);
Expand Down

0 comments on commit 0815bfd

Please sign in to comment.