aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/debug/DeveloperFeatures.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-09-25 15:27:22 +0200
committerLinnea Gräf <nea@nea.moe>2024-09-25 15:27:22 +0200
commitbeb14d73bd2d0d48513e540ff629b48f89b95ed9 (patch)
tree8b8840481a3e15c30c1b21b056503dd4b46e0d28 /src/main/kotlin/features/debug/DeveloperFeatures.kt
parent420f2a61e1cc64d68bf03825e8fd70cf49ac6a01 (diff)
downloadfirmament-beb14d73bd2d0d48513e540ff629b48f89b95ed9.tar.gz
firmament-beb14d73bd2d0d48513e540ff629b48f89b95ed9.tar.bz2
firmament-beb14d73bd2d0d48513e540ff629b48f89b95ed9.zip
Add debug log enabling
Diffstat (limited to 'src/main/kotlin/features/debug/DeveloperFeatures.kt')
-rw-r--r--src/main/kotlin/features/debug/DeveloperFeatures.kt7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/kotlin/features/debug/DeveloperFeatures.kt b/src/main/kotlin/features/debug/DeveloperFeatures.kt
index 20c0cfd..56ee398 100644
--- a/src/main/kotlin/features/debug/DeveloperFeatures.kt
+++ b/src/main/kotlin/features/debug/DeveloperFeatures.kt
@@ -1,5 +1,3 @@
-
-
package moe.nea.firmament.features.debug
import java.nio.file.Path
@@ -13,7 +11,6 @@ import moe.nea.firmament.features.FirmamentFeature
import moe.nea.firmament.gui.config.ManagedConfig
import moe.nea.firmament.util.MC
import moe.nea.firmament.util.TimeMark
-import moe.nea.firmament.util.errorBoundary
import moe.nea.firmament.util.iterate
object DeveloperFeatures : FirmamentFeature {
@@ -43,7 +40,9 @@ object DeveloperFeatures : FirmamentFeature {
MC.player?.sendMessage(Text.translatable("firmament.dev.resourcerebuild.start"))
val startTime = TimeMark.now()
process.toHandle().onExit().thenApply {
- MC.player?.sendMessage(Text.stringifiedTranslatable("firmament.dev.resourcerebuild.done", startTime.passedTime()))
+ MC.player?.sendMessage(Text.stringifiedTranslatable(
+ "firmament.dev.resourcerebuild.done",
+ startTime.passedTime()))
Unit
}
} else {