Ported to 1.7.10 pre4 forge prerelease