Optimized mob spawner logic