@@ -98,8 +98,8 @@ public class CraftMapCanvas implements MapCanvas {
|
||||
color = Byte.parseByte(text.substring(i + 1, j));
|
||||
i = j;
|
||||
continue;
|
||||
} catch (NumberFormatException ex) {
|
||||
}
|
||||
catch (NumberFormatException ex) {}
|
||||
}
|
||||
throw new IllegalArgumentException("Text contains unterminated color string");
|
||||
}
|
||||
|
||||
@@ -35,8 +35,7 @@ public final class CraftMapView implements MapView {
|
||||
if (text.startsWith("map_")) {
|
||||
try {
|
||||
return Integer.parseInt(text.substring("map_".length()));
|
||||
}
|
||||
catch (NumberFormatException ex) {
|
||||
} catch (NumberFormatException ex) {
|
||||
throw new IllegalStateException("Map has non-numeric ID");
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user