Updated code to minecraft 1.4.7