Skip to content

Commit

Permalink
🐛 fix(Item): 紧急修复扫人会导致自身暴露
Browse files Browse the repository at this point in the history
  • Loading branch information
wangziwenhk committed Aug 2, 2024
1 parent df6d4dd commit c8913e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ curios_version=5.9.1+1.20.1
mod_id=apex_extra
mod_name=Apex Extra
mod_license=All Rights Reserved
mod_version=1.0.0
mod_version=1.0.1
mod_group_id=com.thirdtune.apex_extra
mod_authors=wangziwenhk
mod_description=Added some skills from Apex Legends
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class AllfatherEye : Item(Properties().stacksTo(1).setNoRepair()) {
player.cooldowns.addCooldown(this, cooldown * 20)
for (nearPlayer in player.level()
.getEntitiesOfClass(Player::class.java, player.boundingBox.inflate(10.0))) {
nearPlayer.addEffect(MobEffectInstance(MobEffects.GLOWING, duration * 20, 0))
if(nearPlayer!=player){
nearPlayer.addEffect(MobEffectInstance(MobEffects.GLOWING, duration * 20, 0))
}
}
showTime = duration * 20
return super.use(world, player, usedHand)
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = "All Rights Reserved"
# mod 的 modid
modId = "apex_extra" #mandatory
# mod 的版本号
version = "1.0" #mandatory
version = "1.0.1" #mandatory
# mod 的显示名称
displayName = "ApexExtra" #mandatory
authors = "wangziwenhk" #optional
Expand Down

0 comments on commit c8913e5

Please sign in to comment.