diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-18 08:22:31 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-18 08:22:31 -0500 |
commit | 9cd4efc009d45dd671908e8cdc3477aaf14550e6 (patch) | |
tree | 1c3d52b66b78d520f5242d533bec825f4d34dcff /src/main/kotlin | |
parent | 8b1b2d19b3af2462ddad000c7d71cd6c702e4560 (diff) | |
download | DulkirMod-Fabric-9cd4efc009d45dd671908e8cdc3477aaf14550e6.tar.gz DulkirMod-Fabric-9cd4efc009d45dd671908e8cdc3477aaf14550e6.tar.bz2 DulkirMod-Fabric-9cd4efc009d45dd671908e8cdc3477aaf14550e6.zip |
Added dev env clause for testingCommand(s) Registrations
Diffstat (limited to 'src/main/kotlin')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/Registrations.kt | 5 |
1 files changed, 4 insertions, 1 deletions
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() { |