--- a/net/minecraft/world/item/component/DeathProtection.java
+++ b/net/minecraft/world/item/component/DeathProtection.java
@@ -37,7 +_,7 @@
 
     public void applyEffects(ItemStack stack, LivingEntity entity) {
         for (ConsumeEffect consumeEffect : this.deathEffects) {
-            consumeEffect.apply(entity.level(), stack, entity);
+            consumeEffect.apply(entity.level(), stack, entity, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.TOTEM); // CraftBukkit
         }
     }
 }
