if (range.contains("[")) {
range = range.replace("[", "");
range = range.replace("]", "");
final String[] amount = range.split(",");
dropsItems.add(new DropItem(tempName, probability,
Integer.parseInt(amount[0]),
Integer.parseInt(amount[1])));
} else {
dropsItems.add(new DropItem(tempName, probability,
Integer.parseInt(range)));
}
}
} else if (qName.equals("attributes")) {
attributes = true;