mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Fix server crash with piercing shots through vanished players (#2390)
This commit is contained in:
parent
93891ad57a
commit
c80ba8dcc4
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@ diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java
|
|||
index 2b829abac..af0f5cb00 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityArrow.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityArrow.java
|
||||
@@ -184,6 +184,16 @@ public abstract class EntityArrow extends Entity implements IProjectile {
|
||||
@@ -184,6 +184,17 @@ public abstract class EntityArrow extends Entity implements IProjectile {
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ index 2b829abac..af0f5cb00 100644
|
|||
+ com.destroystokyo.paper.event.entity.ProjectileCollideEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callProjectileCollideEvent(this, (MovingObjectPositionEntity)object);
|
||||
+ if (event.isCancelled()) {
|
||||
+ object = null;
|
||||
+ movingobjectpositionentity = null;
|
||||
+ }
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
|
Loading…
Reference in a new issue