From d875b2d74b4008e791a0ef2d6033ce60cff20113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=BF=E9=B9=B0?= Date: Fri, 3 Nov 2023 18:07:10 +0800 Subject: [PATCH] [publish] beta 34 fix getTargetedEntity() --- README.md | 2 +- gradle.properties | 2 +- project/common/src/main/kotlin/ink/ptms/um/Mythic.kt | 2 +- .../src/main/kotlin/ink/ptms/um/impl4/Mythic4.kt | 2 +- .../src/main/kotlin/ink/ptms/um/impl5/Mythic5.kt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f199de8..e9e3409 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ taboolib{ relocate("ink.ptms.um","xx.um") } -taboo("ink.ptms:um:1.0.0-beta-33") +taboo("ink.ptms:um:1.0.0-beta-34") ``` diff --git a/gradle.properties b/gradle.properties index ea82bd4..6e2914d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,3 @@ group=ink.ptms.um -version=1.0.0-beta-33 +version=1.0.0-beta-34 taboolib_version=6.0.12-26 diff --git a/project/common/src/main/kotlin/ink/ptms/um/Mythic.kt b/project/common/src/main/kotlin/ink/ptms/um/Mythic.kt index f483eb0..4678c7c 100644 --- a/project/common/src/main/kotlin/ink/ptms/um/Mythic.kt +++ b/project/common/src/main/kotlin/ink/ptms/um/Mythic.kt @@ -53,7 +53,7 @@ interface Mythic { * * @param player 玩家 */ - fun getTargetedEntity(player: Player): LivingEntity + fun getTargetedEntity(player: Player): LivingEntity? /** * 释放技能 diff --git a/project/implementation-v4/src/main/kotlin/ink/ptms/um/impl4/Mythic4.kt b/project/implementation-v4/src/main/kotlin/ink/ptms/um/impl4/Mythic4.kt index 6731304..533c3ef 100644 --- a/project/implementation-v4/src/main/kotlin/ink/ptms/um/impl4/Mythic4.kt +++ b/project/implementation-v4/src/main/kotlin/ink/ptms/um/impl4/Mythic4.kt @@ -38,7 +38,7 @@ internal class Mythic4 : Mythic { override val isLegacy = true - override fun getTargetedEntity(player: Player): LivingEntity { + override fun getTargetedEntity(player: Player): LivingEntity? { return MythicUtil.getTargetedEntity(player) } diff --git a/project/implementation-v5/src/main/kotlin/ink/ptms/um/impl5/Mythic5.kt b/project/implementation-v5/src/main/kotlin/ink/ptms/um/impl5/Mythic5.kt index a4079f8..a35ea3e 100644 --- a/project/implementation-v5/src/main/kotlin/ink/ptms/um/impl5/Mythic5.kt +++ b/project/implementation-v5/src/main/kotlin/ink/ptms/um/impl5/Mythic5.kt @@ -75,7 +75,7 @@ internal class Mythic5 : Mythic { return Skill5(api.skillManager.getMechanic(MythicLineConfigImpl.unparseBlock(skillLine)) ?: return null) } - override fun getTargetedEntity(player: Player): LivingEntity { + override fun getTargetedEntity(player: Player): LivingEntity? { return MythicUtil.getTargetedEntity(player) }