--- a/net/minecraft/world/effect/RegenerationMobEffect.java
+++ b/net/minecraft/world/effect/RegenerationMobEffect.java
@@ -3,6 +3,7 @@
 import net.minecraft.world.entity.LivingEntity;
 
 class RegenerationMobEffect extends MobEffect {
+
     protected RegenerationMobEffect(MobEffectCategory category, int color) {
         super(category, color);
     }
@@ -11,18 +12,15 @@
     public void applyEffectTick(LivingEntity entity, int amplifier) {
         super.applyEffectTick(entity, amplifier);
         if (entity.getHealth() < entity.getMaxHealth()) {
-            entity.heal(1.0F);
+            entity.heal(1.0F, org.bukkit.event.entity.EntityRegainHealthEvent.RegainReason.MAGIC_REGEN); // CraftBukkit
         }
 
     }
 
     @Override
     public boolean shouldApplyEffectTickThisTick(int duration, int amplifier) {
-        int i = 50 >> amplifier;
-        if (i > 0) {
-            return duration % i == 0;
-        } else {
-            return true;
-        }
+        int k = 50 >> amplifier;
+
+        return k > 0 ? duration % k == 0 : true;
     }
 }
