} else if (b instanceof Building) {
int num = value == null ? 1 : Integer.parseInt(value);
curWaypoint.setBuilding((Building) b, num);
} else if (b instanceof Upgrade) {
int num = value == null ? 0 : Integer.parseInt(value) - 1;
curWaypoint.addUpgrade((Upgrade) buildables.get(word)[num]);
}
} else if (inSettingsBlock) {
boolean validKeyword = processSetting(settings, word, value);
if (!validKeyword){
unknownKeywords.add(word);