Browse Source

Spelling fix.

preble 13 years ago
parent
commit
2999419e10
2 changed files with 3 additions and 1 deletions
  1. 2 0
      Classes/IJInventoryItem.m
  2. 1 1
      Items.csv

+ 2 - 0
Classes/IJInventoryItem.m

@@ -139,6 +139,8 @@
 													  error:&error];
 		NSMutableDictionary *building = [NSMutableDictionary dictionary];
 		[lines enumerateLinesUsingBlock:^(NSString *line, BOOL *stop) {
+			if ([line hasPrefix:@"#"]) // ignore lines with a # prefix
+				return;
 			NSArray *components = [line componentsSeparatedByString:@","];
 			NSNumber *itemId = [NSNumber numberWithShort:[[components objectAtIndex:0] intValue]];
 			NSString *name = [components objectAtIndex:1];

+ 1 - 1
Items.csv

@@ -89,7 +89,7 @@
 268,Wooden Sword
 269,Wooden Spade
 270,Wooden Pickaxe
-271,Woord Axe
+271,Wooden Axe
 272,Stone Sword
 273,Stone Spade
 274,Stone Pickaxe