Updated for compatibility with MC 1.7.10