aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/util/skyblock/PartyUtil.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/util/skyblock/PartyUtil.kt')
-rw-r--r--src/main/kotlin/util/skyblock/PartyUtil.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/kotlin/util/skyblock/PartyUtil.kt b/src/main/kotlin/util/skyblock/PartyUtil.kt
index 7d28868..46e1aa3 100644
--- a/src/main/kotlin/util/skyblock/PartyUtil.kt
+++ b/src/main/kotlin/util/skyblock/PartyUtil.kt
@@ -7,7 +7,7 @@ import net.hypixel.modapi.packet.impl.clientbound.ClientboundPartyInfoPacket.Par
import net.hypixel.modapi.packet.impl.serverbound.ServerboundPartyInfoPacket
import org.intellij.lang.annotations.Language
import kotlinx.coroutines.launch
-import net.minecraft.text.Text
+import net.minecraft.network.chat.Component
import moe.nea.firmament.Firmament
import moe.nea.firmament.annotations.Subscribe
import moe.nea.firmament.apis.Routes
@@ -53,7 +53,7 @@ object PartyUtil {
}
thenExecute {
val p = party
- val text = Text.empty()
+ val text = Component.empty()
text.append(
tr("firmament.dev.partyinfo", "Party Info: ")
.boolColour(p != null)
@@ -64,7 +64,7 @@ object PartyUtil {
text.append(tr("firmament.dev.partyinfo.count", "${p.members.size} members").grey())
p.members.forEach {
text.append("\n")
- .append(Text.literal(" - ${it.name}"))
+ .append(Component.literal(" - ${it.name}"))
.append(" (")
.append(
when (it.role) {