mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-12-29 12:37:53 +01:00
FIx MCAChunk move
This commit is contained in:
parent
fc599f2f86
commit
9a54719d13
@ -278,9 +278,9 @@ public class MCAChunk extends FaweChunk<Void> {
|
|||||||
short pair = MathMan.tripleBlockCoord(x, y, z);
|
short pair = MathMan.tripleBlockCoord(x, y, z);
|
||||||
CompoundTag tag = entry.getValue();
|
CompoundTag tag = entry.getValue();
|
||||||
Map<String, Tag> map = ReflectionUtils.getMap(tag.getValue());
|
Map<String, Tag> 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("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);
|
tiles.put(pair, tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user