From 924ff1193234b1b1087e38e90181c7fd3ffbe95b Mon Sep 17 00:00:00 2001 From: LucHeart Date: Wed, 28 Feb 2024 23:52:29 +0100 Subject: [PATCH] remove debugs --- .../integrations/minecraft/ShockCraft.kt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main/kotlin/openshock/integrations/minecraft/ShockCraft.kt b/src/main/kotlin/openshock/integrations/minecraft/ShockCraft.kt index 2063138..d06b6c4 100644 --- a/src/main/kotlin/openshock/integrations/minecraft/ShockCraft.kt +++ b/src/main/kotlin/openshock/integrations/minecraft/ShockCraft.kt @@ -30,28 +30,11 @@ import java.util.Calendar object ShockCraft : ModInitializer { public val logger: Logger = LoggerFactory.getLogger("shockcraft") - @OptIn(DelicateCoroutinesApi::class) override fun onInitialize() { logger.info("Hello Fabric world!") ShockCraftConfig.HANDLER.load() - GlobalScope.launch { OpenShockApi.control(ControlType.Vibrate, 50, 5000u, "DEBUG") } - - CommandRegistrationCallback.EVENT.register(CommandRegistrationCallback { dispatcher: CommandDispatcher, registryAccess: CommandRegistryAccess?, environment: CommandManager.RegistrationEnvironment? -> - dispatcher.register(literal("foo") - .executes { context -> - - GlobalScope.launch { OpenShockApi.control(ControlType.Vibrate, 50, 5000u, "DEBUG") } - - context.getSource().sendFeedback( - { Text.literal("Called /foo with no arguments") }, - false - ) - 1 - }) - }) - ClientTickEvents.END_CLIENT_TICK.register(EndTick { clientTickLoopFun() }) }