Updated entity code for MC 1.6.4