mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00: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 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user