From 65038b7b370e5e8bc3e4e4d697a42b04a9c825e6 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 1 Apr 2025 13:40:31 +0200 Subject: feat: Improve performance of slime particles and armour with texture packs --- src/main/kotlin/features/debug/DebugLogger.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/features') diff --git a/src/main/kotlin/features/debug/DebugLogger.kt b/src/main/kotlin/features/debug/DebugLogger.kt index 2c6b962..9115956 100644 --- a/src/main/kotlin/features/debug/DebugLogger.kt +++ b/src/main/kotlin/features/debug/DebugLogger.kt @@ -10,6 +10,7 @@ class DebugLogger(val tag: String) { companion object { val allInstances = InstanceList("DebugLogger") } + object EnabledLogs : DataHolder>(serializer(), "DebugLogs", ::mutableSetOf) init { @@ -17,6 +18,7 @@ class DebugLogger(val tag: String) { } fun isEnabled() = DeveloperFeatures.isEnabled && EnabledLogs.data.contains(tag) + fun log(text: String) = log { text } fun log(text: () -> String) { if (!isEnabled()) return MC.sendChat(Text.literal(text())) -- cgit