Fix 4096 block id support in restore and schematic. (for real this time)

This commit is contained in:
Wizjany
2013-02-24 14:57:34 -05:00
parent 31de2a3a09
commit 1be3320bcf
2 changed files with 24 additions and 15 deletions

View File

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