Optimised code, fixed spawning in air in Debug Mode