2016-11-17 02:41:03 +01:00
|
|
|
--- a/net/minecraft/server/EntityLlamaSpit.java
|
|
|
|
+++ b/net/minecraft/server/EntityLlamaSpit.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -6,7 +6,7 @@
|
2016-11-17 02:41:03 +01:00
|
|
|
|
|
|
|
public class EntityLlamaSpit extends Entity implements IProjectile {
|
|
|
|
|
|
|
|
- public EntityLlama shooter;
|
|
|
|
+ public EntityLiving shooter; // CraftBukkit - type
|
2019-04-23 04:00:00 +02:00
|
|
|
private NBTTagCompound c;
|
2016-11-17 02:41:03 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
public EntityLlamaSpit(EntityTypes<? extends EntityLlamaSpit> entitytypes, World world) {
|
|
|
|
@@ -91,6 +91,7 @@
|
2017-08-02 10:05:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public void a(MovingObjectPosition movingobjectposition) {
|
|
|
|
+ org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileHitEvent(this, movingobjectposition); // Craftbukkit - Call event
|
2019-04-23 04:00:00 +02:00
|
|
|
MovingObjectPosition.EnumMovingObjectType movingobjectposition_enummovingobjecttype = movingobjectposition.getType();
|
|
|
|
|
|
|
|
if (movingobjectposition_enummovingobjecttype == MovingObjectPosition.EnumMovingObjectType.ENTITY && this.shooter != null) {
|