FIx MCAChunk move

This commit is contained in:
Jesse Boyd 2018-05-15 10:22:57 +10:00
parent fc599f2f86
commit 9a54719d13
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 2 additions and 2 deletions

View File

@ -278,9 +278,9 @@ public class MCAChunk extends FaweChunk<Void> {
short pair = MathMan.tripleBlockCoord(x, y, z);
CompoundTag tag = entry.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("z", new IntTag(z + (getZ() << 4)));
map.put("z", new IntTag((z & 15) + (getZ() << 4)));
tiles.put(pair, tag);
}
}