Refactor func_403270_teleport.