mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
SPIGOT-4673: EntitySpawnEvent should not be called for players
By: md_5 <git@md-5.net>
This commit is contained in:
parent
23997eddd5
commit
10b207e39b
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ public class CraftEventFactory {
|
||||||
event = CraftEventFactory.callProjectileLaunchEvent(entity);
|
event = CraftEventFactory.callProjectileLaunchEvent(entity);
|
||||||
} else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
|
} else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
|
||||||
event = CraftEventFactory.callVehicleCreateEvent(entity);
|
event = CraftEventFactory.callVehicleCreateEvent(entity);
|
||||||
} else {
|
} else if (!(entity instanceof EntityPlayer)) {
|
||||||
event = CraftEventFactory.callEntitySpawnEvent(entity);
|
event = CraftEventFactory.callEntitySpawnEvent(entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue