mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-27 05:00:08 +08:00
Fixed issue with block IDs being returned negative in snapshots.
This commit is contained in:
parent
5523e7e73d
commit
5402da6c70
@ -124,7 +124,7 @@ public int getBlockID(Vector pos) throws DataException {
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user