Fixed issue with block IDs being returned negative in snapshots.

This commit is contained in:
sk89q 2012-10-20 23:38:26 -07:00
parent 5523e7e73d
commit 5402da6c70

View File

@ -124,7 +124,7 @@ public class AnvilChunk implements Chunk {
addId = (blocksAdd[section][index >> 2] & 0xF) << 8;
}
return blocks[section][index] + addId;
return blocks[section][index] & 0xFF + addId;
} catch (IndexOutOfBoundsException e) {
throw new DataException("Chunk does not contain position " + pos);
}