Updating to support Minecraft v 1.5x (All credit to StevenRS11)