Updated to work with FML for MC 1.4.7