Paper/nms-patches/EntityLlamaSpit.patch

20 lines
893 B
Diff
Raw Normal View History

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 @@
}
public void a(MovingObjectPosition movingobjectposition) {
2020-02-02 01:18:17 +01:00
+ 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) {