Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 20:40:07 +01:00
20 Zeilen
893 B
Diff
20 Zeilen
893 B
Diff
--- a/net/minecraft/server/EntityLlamaSpit.java
|
|
+++ b/net/minecraft/server/EntityLlamaSpit.java
|
|
@@ -6,7 +6,7 @@
|
|
|
|
public class EntityLlamaSpit extends Entity implements IProjectile {
|
|
|
|
- public EntityLlama shooter;
|
|
+ public EntityLiving shooter; // CraftBukkit - type
|
|
private NBTTagCompound c;
|
|
|
|
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
|
|
MovingObjectPosition.EnumMovingObjectType movingobjectposition_enummovingobjecttype = movingobjectposition.getType();
|
|
|
|
if (movingobjectposition_enummovingobjecttype == MovingObjectPosition.EnumMovingObjectType.ENTITY && this.shooter != null) {
|