SPIGOT-4673: EntitySpawnEvent should not be called for players

This commit is contained in:
md_5 2019-03-26 20:42:04 +11:00
parent 51100db821
commit 4c8327f721

View File

@ -388,7 +388,7 @@ public class CraftEventFactory {
event = CraftEventFactory.callProjectileLaunchEvent(entity);
} else if (entity.getBukkitEntity() instanceof org.bukkit.entity.Vehicle){
event = CraftEventFactory.callVehicleCreateEvent(entity);
} else {
} else if (!(entity instanceof EntityPlayer)) {
event = CraftEventFactory.callEntitySpawnEvent(entity);
}