[BUG] Fix 1.18.2 compile error
This commit is contained in:
@@ -9,6 +9,7 @@ import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
||||
import net.kyori.adventure.text.serializer.json.JSONOptions;
|
||||
import net.minecraft.ChatFormatting;
|
||||
import net.minecraft.SharedConstants;
|
||||
import net.minecraft.Util;
|
||||
import net.minecraft.network.chat.Component;
|
||||
import net.minecraft.network.chat.Style;
|
||||
import net.minecraft.network.chat.TextComponent;
|
||||
|
@@ -1 +1 @@
|
||||
0a7d569db49dd69e378de08da7c815993f91c523
|
||||
cc26cd450d2ed828eeb7d937a8b5eb92e97afef9
|
@@ -8,11 +8,10 @@
|
||||
import com.hypherionmc.craterlib.nojang.resources.ResourceIdentifier;
|
||||
import me.hypherionmc.mcdiscordformatter.discord.DiscordSerializer;
|
||||
import me.hypherionmc.mcdiscordformatter.minecraft.MinecraftSerializer;
|
||||
@@ -11,14 +9,10 @@
|
||||
import net.kyori.adventure.text.serializer.json.JSONOptions;
|
||||
@@ -12,13 +10,10 @@
|
||||
import net.minecraft.ChatFormatting;
|
||||
import net.minecraft.SharedConstants;
|
||||
-import net.minecraft.Util;
|
||||
import net.minecraft.Util;
|
||||
-// @noplugin
|
||||
-import net.minecraft.client.Minecraft;
|
||||
-// #noplugin
|
||||
@@ -25,7 +24,7 @@
|
||||
|
||||
public class ChatUtils {
|
||||
|
||||
@@ -30,32 +24,20 @@
|
||||
@@ -30,32 +25,20 @@
|
||||
|
||||
public static Component adventureToMojang(net.kyori.adventure.text.Component inComponent) {
|
||||
final String serialised = adventureSerializer.serialize(inComponent);
|
||||
@@ -61,7 +60,7 @@
|
||||
}
|
||||
|
||||
public static String strip(String inString, String... toStrip) {
|
||||
@@ -84,7 +66,7 @@
|
||||
@@ -84,7 +67,7 @@
|
||||
}
|
||||
|
||||
public static net.kyori.adventure.text.Component resolve(String component, boolean formatted) {
|
||||
@@ -70,7 +69,7 @@
|
||||
if (formatted) {
|
||||
returnVal = MinecraftSerializer.INSTANCE.serialize(component);
|
||||
}
|
||||
@@ -112,7 +94,7 @@
|
||||
@@ -112,7 +95,7 @@
|
||||
if (identifier == null)
|
||||
return net.kyori.adventure.text.Component.text("Unknown");
|
||||
|
||||
|
Reference in New Issue
Block a user