Skip to content

Commit

Permalink
fix: removed EntityDamageEvent causing falldamage bypas
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Feb 12, 2024
1 parent 2a75fdb commit 2037122
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.cultofclang.bonehurtingjuice.events

import org.bukkit.damage.DamageSource
import org.bukkit.damage.DamageType
import org.bukkit.entity.Player
import org.bukkit.event.entity.EntityDamageEvent

class BoneHurtDamageEvent(player: Player, damage: Double) : EntityDamageEvent(player, DamageCause.FALL, damage)
class BoneHurtDamageEvent(player: Player, damage: Double) : EntityDamageEvent(player, DamageCause.FALL, DamageSource.builder(DamageType.FALL).build(), damage)

0 comments on commit 2037122

Please sign in to comment.