Added test mobs spawning randomly and fixed players being disconnected when hitting a despawned entity.