Fix: text

This commit is contained in:
2026-04-08 07:16:59 +02:00
parent 2e45cc39f7
commit 33956ea550
2 changed files with 3 additions and 4 deletions
+1 -1
Submodule common updated: 3379acef80...5dd4b17db5
@@ -7,6 +7,7 @@ import org.spongepowered.asm.mixin.Mixin;
import net.minecraft.text.Style;
import net.minecraft.text.Text;
import net.minecraft.text.StyleSpriteSource.Font;
import net.minecraft.util.Identifier;
@Mixin(Text.class)
@@ -14,9 +15,7 @@ public interface TextMixin extends TextRef {
@Override
public default TextRef withFont(IdentifierRef font) {
// return (TextRef) (((Text)
// this).copy().setStyle(Style.EMPTY.withFont((Identifier) (Object) font)));
return this;
return (TextRef) (((Text) this).copy().setStyle(Style.EMPTY.withFont(new Font((Identifier) (Object) font))));
}
@Override