blob: 31b2c076613ff289de852aee51f9b751fe5346a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- a/net/minecraft/server/ItemGoldenApple.java
+++ b/net/minecraft/server/ItemGoldenApple.java
@@ -8,8 +8,10 @@
protected void a(ItemStack itemstack, World world, EntityHuman entityhuman) {
if (!world.isClientSide) {
- entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 100, 1));
- entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 0));
+ // CraftBukkit start
+ entityhuman.addEffect(new MobEffect(MobEffects.REGENERATION, 100, 1), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
+ entityhuman.addEffect(new MobEffect(MobEffects.ABSORBTION, 2400, 0), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD);
+ // CraftBukkit end
}
}
|