Fixed issue with block IDs being returned negative in snapshots.

Dieser Commit ist enthalten in:
sk89q 2012-10-20 23:38:26 -07:00
Ursprung 5523e7e73d
Commit 5402da6c70

Datei anzeigen

@ -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);
}