fixed temporary thickness check
This commit is contained in:
parent
07aafb6207
commit
427ee28ce4
1 changed files with 34 additions and 30 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue