From 922e0a1a7f55ded3511624de5b385bc4c920662b Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 5 Jan 2015 10:11:50 +1100 Subject: [PATCH] SPIGOT-341: Backport ender pearl spawning fix from 1.8.1 --- nms-patches/EntityEnderPearl.patch | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/nms-patches/EntityEnderPearl.patch b/nms-patches/EntityEnderPearl.patch index b963f4bdfe..1eeddb3a1c 100644 --- a/nms-patches/EntityEnderPearl.patch +++ b/nms-patches/EntityEnderPearl.patch @@ -1,6 +1,6 @@ ---- ../work/decompile-8eb82bde//net/minecraft/server/EntityEnderPearl.java 2014-11-28 17:43:43.085707435 +0000 -+++ src/main/java/net/minecraft/server/EntityEnderPearl.java 2014-11-28 17:38:24.000000000 +0000 -@@ -1,5 +1,11 @@ +--- ../work/decompile-8eb82bde/net/minecraft/server/EntityEnderPearl.java 2015-01-05 10:11:38.333916086 +1100 ++++ src/main/java/net/minecraft/server/EntityEnderPearl.java 2015-01-05 10:11:38.333916086 +1100 +@@ -1,7 +1,20 @@ package net.minecraft.server; +// CraftBukkit start @@ -11,8 +11,17 @@ + public class EntityEnderPearl extends EntityProjectile { ++ // CraftBukkit start ++ // This is backported from 1.8.1 ++ public EntityEnderPearl(World world) { ++ super(world); ++ } ++ // CraftBukkit end ++ public EntityEnderPearl(World world, EntityLiving entityliving) { -@@ -29,14 +35,28 @@ + super(world, entityliving); + } +@@ -29,14 +42,28 @@ entityendermite.setPositionRotation(entityliving.locX, entityliving.locY, entityliving.locZ, entityliving.yaw, entityliving.pitch); this.world.addEntity(entityendermite); }