mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
SPIGOT-1727: Fix ShulkerBullet.setTarget
By: md_5 <git@md-5.net>
This commit is contained in:
parent
5b0dae1d7c
commit
1a382d5c02
1 changed files with 23 additions and 14 deletions
|
@ -1,23 +1,32 @@
|
|||
--- 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 @@
|
||||
@@ -42,8 +42,29 @@
|
||||
this.target = entity;
|
||||
this.c = EnumDirection.UP;
|
||||
this.a(enumdirection_enumaxis);
|
||||
+ projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
|
||||
}
|
||||
|
||||
+ // 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;
|
||||
+ this.c = EnumDirection.UP;
|
||||
+ this.a(EnumDirection.EnumAxis.X);
|
||||
+ }
|
||||
+ // CraftBukkit end
|
||||
+
|
||||
protected void b(NBTTagCompound nbttagcompound) {
|
||||
BlockPosition blockposition;
|
||||
NBTTagCompound nbttagcompound1;
|
||||
|
|
Loading…
Reference in a new issue