mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
SPIGOT-341: Backport ender pearl spawning fix from 1.8.1
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4b61c24b36
commit
0631c274f8
@ -1,6 +1,6 @@
|
|||||||
--- ../work/decompile-8eb82bde//net/minecraft/server/EntityEnderPearl.java 2014-11-28 17:43:43.085707435 +0000
|
--- ../work/decompile-8eb82bde/net/minecraft/server/EntityEnderPearl.java 2015-01-05 10:11:38.333916086 +1100
|
||||||
+++ src/main/java/net/minecraft/server/EntityEnderPearl.java 2014-11-28 17:38:24.000000000 +0000
|
+++ src/main/java/net/minecraft/server/EntityEnderPearl.java 2015-01-05 10:11:38.333916086 +1100
|
||||||
@@ -1,5 +1,11 @@
|
@@ -1,7 +1,20 @@
|
||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
+// CraftBukkit start
|
+// CraftBukkit start
|
||||||
@ -11,8 +11,17 @@
|
|||||||
+
|
+
|
||||||
public class EntityEnderPearl extends EntityProjectile {
|
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) {
|
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);
|
entityendermite.setPositionRotation(entityliving.locX, entityliving.locY, entityliving.locZ, entityliving.yaw, entityliving.pitch);
|
||||||
this.world.addEntity(entityendermite);
|
this.world.addEntity(entityendermite);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user