diff --git a/src/main/java/com/sk89q/worldedit/data/AnvilChunk.java b/src/main/java/com/sk89q/worldedit/data/AnvilChunk.java index 398bee434..96f92559a 100644 --- a/src/main/java/com/sk89q/worldedit/data/AnvilChunk.java +++ b/src/main/java/com/sk89q/worldedit/data/AnvilChunk.java @@ -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); }