Skip to content

Commit

Permalink
Initialize brightness as null in PaperTagOptions
Browse files Browse the repository at this point in the history
The default value of the `brightness` field in `PaperTagOptions` was changed from a new `Brightness` instance to `null`. This ensures a consistent initial state for the variable and avoids unintended default behavior.
  • Loading branch information
NonSwag committed Jan 23, 2025
1 parent aa49bcd commit ef734d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public static boolean canHavePose(EntityType type, Pose pose) {
}

private class PaperTagOptions implements TagOptions {
private @Nullable Brightness brightness = new Brightness(15, 0);
private @Nullable Brightness brightness = null;
private @Nullable Color backgroundColor = null;
private Billboard billboard = Billboard.CENTER;
private TextAlignment alignment = TextAlignment.CENTER;
Expand Down

0 comments on commit ef734d7

Please sign in to comment.