Skip to content

Commit

Permalink
pass in defaults correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Dec 31, 2024
1 parent fa2a854 commit db29fe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/gregtech/mixins/mui2/StyledTextMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public TextWidget asWidget() {
.alignment(this.alignment)
.scale(this.scale);

((UnboxFix) text).gregTech$useDefaultTextColor(this.color == null);
((UnboxFix) text).gregTech$useDefaultShadow(this.shadow == null);
((UnboxFix) text).gregTech$useDefaultTextColor(this.gregTech$defaultTextColor);
((UnboxFix) text).gregTech$useDefaultShadow(this.gregTech$defaultShadow);

return text.color(color == null ? 0 : color)
.shadow(shadow != null && shadow);
Expand All @@ -94,8 +94,8 @@ public AnimatedText withAnimation() {
.alignment(this.alignment)
.scale(this.scale);

((UnboxFix) text).gregTech$useDefaultTextColor(this.color == null);
((UnboxFix) text).gregTech$useDefaultShadow(this.shadow == null);
((UnboxFix) text).gregTech$useDefaultTextColor(this.gregTech$defaultTextColor);
((UnboxFix) text).gregTech$useDefaultShadow(this.gregTech$defaultShadow);

return text.color(color == null ? 0 : color)
.shadow(shadow != null && shadow);
Expand Down

0 comments on commit db29fe1

Please sign in to comment.