Skip to content

Commit

Permalink
1.3.5
Browse files Browse the repository at this point in the history
修复物品掉落使用了异步问题
  • Loading branch information
YsGqHY committed Dec 26, 2024
1 parent 15aa10d commit b4bd178
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
group=kim.azure.kether
version=1.3.4
version=1.3.5
13 changes: 9 additions & 4 deletions src/main/kotlin/kim/azure/kether/hook/MythicMobsHook.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import org.bukkit.Location
import org.bukkit.entity.Entity
import org.bukkit.entity.Player
import taboolib.common.platform.event.SubscribeEvent
import taboolib.common.platform.function.submit
import taboolib.common5.cint


Expand All @@ -31,8 +32,10 @@ class AzureDropSkill(config: SkillConfig) : LocationTargetSkill, EntityTargetSki

val factory = AzureFlowAPI.getFactory(item.get(meta.caster))
val stack = factory?.build()?.virtualItemStack(player) ?: return SkillResult.ERROR
repeat(amount.get(meta.caster).cint) {
location.world?.dropItem(location, stack)
submit {
repeat(amount.get(meta.caster).cint) {
location.world?.dropItem(location, stack)
}
}
return SkillResult.SUCCESS
}
Expand All @@ -44,8 +47,10 @@ class AzureDropSkill(config: SkillConfig) : LocationTargetSkill, EntityTargetSki

val factory = AzureFlowAPI.getFactory(item.get(meta.caster))
val stack = factory?.build()?.virtualItemStack(player) ?: return SkillResult.ERROR
repeat(amount.get(meta.caster).cint) {
location.world?.dropItem(location, stack)
submit {
repeat(amount.get(meta.caster).cint) {
location.world?.dropItem(location, stack)
}
}
return SkillResult.SUCCESS
}
Expand Down

0 comments on commit b4bd178

Please # to comment.