summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemFood.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-26 12:00:00 +1000
committermd_5 <git@md-5.net>2018-08-26 12:00:00 +1000
commitce1af0c348a8477f9ec58d79e6267e9226dc5dba (patch)
tree369972a692f450001c06a13e202d916f9c1bb5a8 /nms-patches/ItemFood.patch
parent162bda93ff76fe96a6138a14176807f21a6ddef4 (diff)
downloadcraftbukkit-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.patch6
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
}
}