Skip to content

Commit

Permalink
missed one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Randy Farmer committed Jun 1, 2017
1 parent ec8b9b5 commit 1d094ac
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/org/made/neohabitat/mods/Paper.java
Original file line number Diff line number Diff line change
Expand Up @@ -542,12 +542,13 @@ private void setAsciiFromTextResult(Object obj) {
ascii = new int[byteArray.size()];
int i = 0;
for (; chars.hasNext(); i++) {
int c;
try {
c = ((Double) chars.next()).intValue(); // TODO Two ways to build the mongo DB produce differnt types.
} catch (Exception e) {
c = ((Long) chars.next()).intValue();
}
int c = 0;
Object nextChar = chars.next();
if (nextChar instanceof Double) {
c = ((Double) chars.next()).intValue();
} else if (nextChar instanceof Long) {
c = ((Long) chars.next()).intValue();
}
if (c == 0) {
break;
}
Expand Down

0 comments on commit 1d094ac

Please sign in to comment.