fixed temporary thickness check

This commit is contained in:
Francesco Macagno 2015-08-24 23:30:19 -07:00
parent 07aafb6207
commit 427ee28ce4

View file

@ -132,7 +132,11 @@ public abstract class Orb extends DeployableStructure implements XmlRepresentabl
}
}
thickness = Integer.parseInt(e.getAttribute("thicknessMin"));
try {
thickness = Integer.parseInt(e.getAttribute("maxThickness"));
} catch (NumberFormatException ex) {
throw new InvalidXmlException("MaxThickness is not valid!");
}
//TODO: Implement random thickness