Skip to content

Commit

Permalink
remove debugs
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Feb 28, 2024
1 parent 361531b commit 924ff11
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main/kotlin/openshock/integrations/minecraft/ShockCraft.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServerCommandSource?>, 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() })
}

Expand Down

0 comments on commit 924ff11

Please sign in to comment.