fix more compile issues
This commit is contained in:
@@ -26,7 +26,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+import net.minecraft.network.chat.ComponentContents;
|
||||
+import net.minecraft.network.chat.MutableComponent;
|
||||
+import net.minecraft.network.chat.Style;
|
||||
+import net.minecraft.network.chat.contents.LiteralContents;
|
||||
+import net.minecraft.network.chat.contents.PlainTextContents;
|
||||
+import net.minecraft.util.FormattedCharSequence;
|
||||
+import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
+import org.jetbrains.annotations.Nullable;
|
||||
@@ -60,7 +60,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ @Override
|
||||
+ public ComponentContents getContents() {
|
||||
+ if (this.adventure instanceof TextComponent) {
|
||||
+ return new LiteralContents(((TextComponent) this.adventure).content());
|
||||
+ return PlainTextContents.create(((TextComponent) this.adventure).content());
|
||||
+ } else {
|
||||
+ return this.deepConverted().getContents();
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user