From ed0df08427af623608714db05212a8174a92dc9b Mon Sep 17 00:00:00 2001 From: Taskeren Date: Thu, 21 Dec 2023 06:55:46 +0800 Subject: [PATCH] Removed the @Deprecated for newLiteralArgBuilder --- src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt b/src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt index 30a6d70..ba0cc89 100644 --- a/src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt +++ b/src/main/kotlin/cn/taskeren/brigadierx/BrigadierX.kt @@ -13,7 +13,6 @@ import com.mojang.brigadier.context.CommandContext @Deprecated("Removal", ReplaceWith("LiteralArgumentBuilder.literal(name)"), DeprecationLevel.WARNING) fun newLiteralArgBuilder(name: String): LiteralArgumentBuilder = LiteralArgumentBuilder.literal(name) -@Deprecated("Removal",level = DeprecationLevel.WARNING) fun newLiteralArgBuilder(name: String, func: LiteralArgumentBuilder.() -> Unit): LiteralArgumentBuilder = LiteralArgumentBuilder.literal(name).apply { func.invoke(this) }