From 865d74ed2eb5a85526b3ad20c4827f19f384f7c2 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Mon, 14 Nov 2022 10:06:53 +0700 Subject: [PATCH] We don't receive cancelled events --- .../dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt index a8b8dd310..1496f4b18 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/capability/MatteryPlayerCapability.kt @@ -776,10 +776,6 @@ class MatteryPlayerCapability(val ply: Player) : ICapabilityProvider, INBTSerial } fun onHurtEvent(event: LivingHurtEvent) { - if (event.isCanceled) { - return - } - event.entity.getCapability(MatteryCapability.MATTERY_PLAYER).ifPresentK { it.onHurt(event) } }