blob: 1cc8d57869b9b1c46000131a2f4a6a4a45bac2e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- a/net/minecraft/server/ItemFood.java
+++ b/net/minecraft/server/ItemFood.java
@@ -36,7 +36,7 @@
protected void a(ItemStack itemstack, World world, EntityHuman entityhuman) {
if (!world.isClientSide && this.k != null && world.random.nextFloat() < this.l) {
- entityhuman.addEffect(new MobEffect(this.k));
+ entityhuman.addEffect(new MobEffect(this.k), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD); // CraftBukkit
}
}
|