mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
64cd2b148a
By: DerFrZocker <derrieple@gmail.com>
22 lines
835 B
Diff
22 lines
835 B
Diff
--- a/net/minecraft/world/entity/projectile/EntitySnowball.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntitySnowball.java
|
|
@@ -14,6 +14,10 @@
|
|
import net.minecraft.world.phys.MovingObjectPosition;
|
|
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
+// CraftBukkit end
|
|
+
|
|
public class EntitySnowball extends EntityProjectileThrowable {
|
|
|
|
public EntitySnowball(EntityTypes<? extends EntitySnowball> entitytypes, World world) {
|
|
@@ -65,7 +69,7 @@
|
|
super.onHit(movingobjectposition);
|
|
if (!this.level().isClientSide) {
|
|
this.level().broadcastEntityEvent(this, (byte) 3);
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.HIT); // CraftBukkit - add Bukkit remove cause
|
|
}
|
|
|
|
}
|