moved transformation code for chunk-collision after all existance checks