Fixed error causing mine craft to crash when running