changed Unix line endings to Windows line endings in text files.
check if getResourceMass() returns a number.

With some outdated mods it returns NaN.