mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 15:49:00 +01:00
Fix server crash with piercing shots through vanished players (#2390)
This commit is contained in:
parent
c88648f4f1
commit
55e2ef9d9c
1 changed files with 1 additions and 0 deletions
|
@ -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