@@ -3,9 +3,9 @@
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
protected void a(ItemStack itemstack, World world, EntityHuman entityhuman) {
|
||||
if (!world.isClientSide && this.l != null && world.random.nextFloat() < this.m) {
|
||||
- entityhuman.addEffect(new MobEffect(this.l));
|
||||
+ entityhuman.addEffect(new MobEffect(this.l), org.bukkit.event.entity.EntityPotionEffectEvent.Cause.FOOD); // CraftBukkit
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user