From 9a54719d1329bd362ec573c9c39c1674cc65e64d Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 15 May 2018 10:22:57 +1000 Subject: [PATCH] FIx MCAChunk move --- core/src/main/java/com/boydti/fawe/jnbt/anvil/MCAChunk.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/jnbt/anvil/MCAChunk.java b/core/src/main/java/com/boydti/fawe/jnbt/anvil/MCAChunk.java index 34be77fc..feb6b419 100644 --- a/core/src/main/java/com/boydti/fawe/jnbt/anvil/MCAChunk.java +++ b/core/src/main/java/com/boydti/fawe/jnbt/anvil/MCAChunk.java @@ -278,9 +278,9 @@ public class MCAChunk extends FaweChunk { short pair = MathMan.tripleBlockCoord(x, y, z); CompoundTag tag = entry.getValue(); Map map = ReflectionUtils.getMap(tag.getValue()); - map.put("x", new IntTag(x + (getX() << 4))); + map.put("x", new IntTag((x & 15) + (getX() << 4))); map.put("y", new IntTag(y)); - map.put("z", new IntTag(z + (getZ() << 4))); + map.put("z", new IntTag((z & 15) + (getZ() << 4))); tiles.put(pair, tag); } }