diff options
author | md_5 <git@md-5.net> | 2018-08-26 12:00:00 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-08-26 12:00:00 +1000 |
commit | ce1af0c348a8477f9ec58d79e6267e9226dc5dba (patch) | |
tree | 369972a692f450001c06a13e202d916f9c1bb5a8 /nms-patches/ItemFood.patch | |
parent | 162bda93ff76fe96a6138a14176807f21a6ddef4 (diff) | |
download | craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.gz craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.lz craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.tar.xz craftbukkit-ce1af0c348a8477f9ec58d79e6267e9226dc5dba.zip |
Update to Minecraft 1.13.1
Diffstat (limited to 'nms-patches/ItemFood.patch')
-rw-r--r-- | nms-patches/ItemFood.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nms-patches/ItemFood.patch b/nms-patches/ItemFood.patch index 06317732..1cc8d578 100644 --- a/nms-patches/ItemFood.patch +++ b/nms-patches/ItemFood.patch @@ -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 } } |