2018-07-20 08:04:37 +02:00
|
|
|
--- 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) {
|
2018-08-26 04:00:00 +02:00
|
|
|
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
|
2018-07-20 08:04:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|