From 9cd4efc009d45dd671908e8cdc3477aaf14550e6 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Tue, 18 Jul 2023 08:22:31 -0500 Subject: Added dev env clause for testingCommand(s) Registrations --- src/main/kotlin/com/dulkirfabric/Registrations.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/kotlin/com/dulkirfabric/Registrations.kt b/src/main/kotlin/com/dulkirfabric/Registrations.kt index 099ccb6..669edb1 100644 --- a/src/main/kotlin/com/dulkirfabric/Registrations.kt +++ b/src/main/kotlin/com/dulkirfabric/Registrations.kt @@ -4,13 +4,13 @@ import com.dulkirfabric.DulkirModFabric.EVENT_BUS import com.dulkirfabric.commands.ConfigCommand import com.dulkirfabric.commands.DynamicKeyCommand import com.dulkirfabric.commands.JoinDungeonCommands +import com.dulkirfabric.commands.TestCommand import com.dulkirfabric.events.* import com.dulkirfabric.events.chat.ChatReceivedEvent import com.dulkirfabric.events.chat.ModifyCommandEvent import com.dulkirfabric.events.chat.OverlayReceivedEvent import com.dulkirfabric.features.* import com.dulkirfabric.features.chat.AbiPhoneDND -import com.dulkirfabric.util.SoundUtil import com.dulkirfabric.util.TablistUtils import net.fabricmc.fabric.api.client.command.v2.ClientCommandRegistrationCallback import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientEntityEvents @@ -21,6 +21,7 @@ import net.fabricmc.fabric.api.client.rendering.v1.WorldRenderEvents import net.fabricmc.fabric.api.client.screen.v1.ScreenEvents import net.fabricmc.fabric.api.client.screen.v1.ScreenMouseEvents import net.fabricmc.fabric.api.event.lifecycle.v1.ServerWorldEvents +import net.fabricmc.loader.api.FabricLoader /** @@ -48,6 +49,8 @@ object Registrations { cre.register(JoinDungeonCommands.M6Command::register) cre.register(JoinDungeonCommands.M7Command::register) cre.register(DynamicKeyCommand::register) + if (FabricLoader.getInstance().isDevelopmentEnvironment) + cre.register(TestCommand::register) } fun registerEventListeners() { -- cgit