mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 22:13:42 +01:00
12 lines
489 B
Diff
12 lines
489 B
Diff
--- 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
|
|
}
|
|
|
|
}
|