aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/debug/DebugLogger.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/features/debug/DebugLogger.kt')
-rw-r--r--src/main/kotlin/features/debug/DebugLogger.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/features/debug/DebugLogger.kt b/src/main/kotlin/features/debug/DebugLogger.kt
index 52f6143..2c8ced0 100644
--- a/src/main/kotlin/features/debug/DebugLogger.kt
+++ b/src/main/kotlin/features/debug/DebugLogger.kt
@@ -1,7 +1,7 @@
package moe.nea.firmament.features.debug
import kotlinx.serialization.serializer
-import net.minecraft.text.Text
+import net.minecraft.network.chat.Component
import moe.nea.firmament.util.MC
import moe.nea.firmament.util.TestUtil
import moe.nea.firmament.util.collections.InstanceList
@@ -24,6 +24,6 @@ class DebugLogger(val tag: String) {
fun log(text: String) = log { text }
fun log(text: () -> String) {
if (!isEnabled()) return
- MC.sendChat(Text.literal(text()))
+ MC.sendChat(Component.literal(text()))
}
}