It might help to check if the spawn event was from a spawner.