summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityShulkerBullet.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/EntityShulkerBullet.patch')
-rw-r--r--nms-patches/EntityShulkerBullet.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/nms-patches/EntityShulkerBullet.patch b/nms-patches/EntityShulkerBullet.patch
new file mode 100644
index 00000000..c8e96033
--- /dev/null
+++ b/nms-patches/EntityShulkerBullet.patch
@@ -0,0 +1,23 @@
+--- a/net/minecraft/server/EntityShulkerBullet.java
++++ b/net/minecraft/server/EntityShulkerBullet.java
+@@ -10,6 +10,12 @@
+
+ private EntityLiving shooter;
+ private Entity target;
++ // CraftBukkit start
++ public EntityLiving getShooter() { return this.shooter; }
++ public void setShooter(EntityLiving e) { this.shooter = e; }
++ public Entity getTarget() { return this.target; }
++ public void setTarget(Entity e) { this.target = e; }
++ // CraftBukkit end
+ private EnumDirection c;
+ private int d;
+ private double e;
+@@ -42,6 +48,7 @@
+ this.target = entity;
+ this.c = EnumDirection.UP;
+ this.a(enumdirection_enumaxis);
++ projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
+ }
+
+ protected void b(NBTTagCompound nbttagcompound) {