Explorar el Código

Spelling fix.

preble hace 13 años
padre
commit
2999419e10
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  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