We don't receive cancelled events

This commit is contained in:
DBotThePony 2022-11-14 10:06:53 +07:00
parent 3d435200bc
commit 865d74ed2e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -776,10 +776,6 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial
} }
fun onHurtEvent(event: LivingHurtEvent) { fun onHurtEvent(event: LivingHurtEvent) {
if (event.isCanceled) {
return
}
event.entity.getCapability(MatteryCapability.MATTERY_PLAYER).ifPresentK { it.onHurt(event) } event.entity.getCapability(MatteryCapability.MATTERY_PLAYER).ifPresentK { it.onHurt(event) }
} }