Update block NBT to include the coordinates when saving to history

fixes #708 and fixes #655
This commit is contained in:
dordsor21 2020-12-16 16:59:16 +00:00
parent e4709eb6dc
commit 3a3bf7382d
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -137,7 +137,10 @@ public abstract class AbstractChangeSet implements ChangeSet, IBatchProcessor {
}
if (!tilesTo.isEmpty()) {
for (Map.Entry<BlockVector3, CompoundTag> entry : tilesTo.entrySet()) {
addTileCreate(entry.getValue());
CompoundTag nbt = entry.getValue();
BlockVector3 pos = entry.getKey();
MainUtil.setPosition(nbt, pos.getX() + bx, pos.getY(), pos.getZ() + bz);
addTileCreate(nbt);
}
}
Set<UUID> entRemoves = set.getEntityRemoves();