mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2025-01-23 21:21:25 +01:00
Fix sweeping edge
This commit is contained in:
parent
7acd079b00
commit
d456f9618a
@ -24,6 +24,7 @@ import org.bukkit.craftbukkit.v1_20_R1.entity.CraftEntity
|
||||
import org.bukkit.craftbukkit.v1_20_R1.inventory.CraftItemStack
|
||||
import org.bukkit.enchantments.Enchantment
|
||||
import org.bukkit.entity.Entity
|
||||
import org.bukkit.entity.Player
|
||||
import org.bukkit.event.entity.EntityPotionEffectEvent
|
||||
|
||||
object DamageHandler {
|
||||
@ -131,7 +132,7 @@ object DamageHandler {
|
||||
val f4 =
|
||||
1.0f + if (sweep > 0) SweepingEdgeEnchantment.getSweepingDamageRatio(sweep) else 0.0f * f
|
||||
val list: List<LivingEntity> = (source.getLocation().world as CraftWorld).handle
|
||||
.getEntitiesOfClass(LivingEntity::class.java, nmsEntity.boundingBox.inflate(1.0, 0.25, 1.0))
|
||||
.getEntitiesOfClass(LivingEntity::class.java, nmsEntity.boundingBox.inflate(1.0, 0.25, 1.0)).filter { it !is Player }
|
||||
val iterator: Iterator<*> = list.iterator()
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
|
@ -131,7 +131,7 @@ object DamageHandler {
|
||||
val f4 =
|
||||
1.0f + if (sweep > 0) SweepingEdgeEnchantment.getSweepingDamageRatio(sweep) else 0.0f * f
|
||||
val list: List<LivingEntity> = (source.getLocation().world as CraftWorld).handle
|
||||
.getEntitiesOfClass(LivingEntity::class.java, nmsEntity.boundingBox.inflate(1.0, 0.25, 1.0))
|
||||
.getEntitiesOfClass(LivingEntity::class.java, nmsEntity.boundingBox.inflate(1.0, 0.25, 1.0)).filter { it !is Player }
|
||||
val iterator: Iterator<*> = list.iterator()
|
||||
|
||||
while (iterator.hasNext()) {
|
||||
|
Loading…
Reference in New Issue
Block a user