summaryrefslogtreecommitdiffstats
path: root/nms-patches/ItemChorusFruit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/ItemChorusFruit.patch')
-rw-r--r--nms-patches/ItemChorusFruit.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/ItemChorusFruit.patch b/nms-patches/ItemChorusFruit.patch
index 77739fe1..2c528c32 100644
--- a/nms-patches/ItemChorusFruit.patch
+++ b/nms-patches/ItemChorusFruit.patch
@@ -1,18 +1,18 @@
--- a/net/minecraft/server/ItemChorusFruit.java
+++ b/net/minecraft/server/ItemChorusFruit.java
-@@ -1,5 +1,11 @@
+@@ -1,6 +1,11 @@
package net.minecraft.server;
+ import javax.annotation.Nullable;
+// CraftBukkit start
+import org.bukkit.Location;
+import org.bukkit.entity.Player;
+import org.bukkit.event.player.PlayerTeleportEvent;
+// CraftBukkit end
-+
+
public class ItemChorusFruit extends ItemFood {
- public ItemChorusFruit(int i, float f) {
-@@ -19,7 +25,21 @@
+@@ -22,7 +27,21 @@
double d4 = MathHelper.a(entityliving.locY + (double) (entityliving.getRandom().nextInt(16) - 8), 0.0D, (double) (world.Z() - 1));
double d5 = entityliving.locZ + (entityliving.getRandom().nextDouble() - 0.5D) * 16.0D;