@@ -1,19 +1,19 @@
|
||||
--- a/net/minecraft/server/EntityLlamaSpit.java
|
||||
+++ b/net/minecraft/server/EntityLlamaSpit.java
|
||||
@@ -7,7 +7,7 @@
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
public class EntityLlamaSpit extends Entity implements IProjectile {
|
||||
|
||||
- public EntityLlama shooter;
|
||||
+ public EntityLiving shooter; // CraftBukkit - type
|
||||
private NBTTagCompound b;
|
||||
private NBTTagCompound c;
|
||||
|
||||
public EntityLlamaSpit(World world) {
|
||||
@@ -143,6 +143,7 @@
|
||||
public EntityLlamaSpit(EntityTypes<? extends EntityLlamaSpit> entitytypes, World world) {
|
||||
@@ -91,6 +91,7 @@
|
||||
}
|
||||
|
||||
public void a(MovingObjectPosition movingobjectposition) {
|
||||
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // Craftbukkit - Call event
|
||||
if (movingobjectposition.entity != null && this.shooter != null) {
|
||||
movingobjectposition.entity.damageEntity(DamageSource.a(this, (EntityLiving) this.shooter).c(), 1.0F);
|
||||
}
|
||||
MovingObjectPosition.EnumMovingObjectType movingobjectposition_enummovingobjecttype = movingobjectposition.getType();
|
||||
|
||||
if (movingobjectposition_enummovingobjecttype == MovingObjectPosition.EnumMovingObjectType.ENTITY && this.shooter != null) {
|
||||
|
||||
Reference in New Issue
Block a user