Fixed code for forge 1.6.4 - 9.11.1.964