Changed some code for latest version of MCForge.