fix: add coordinates to tile-entity nbt component (#1607)

This commit is contained in:
Pierre Maurice Schwang 2022-02-12 13:38:37 +01:00 committed by GitHub
parent 7da993d3f1
commit 646a683f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,8 @@ public abstract class AbstractChangeSet implements ChangeSet, IBatchProcessor {
BlockState fromBlock = get.getBlock(pos.getX() & 15, pos.getY(), pos.getZ() & 15); BlockState fromBlock = get.getBlock(pos.getX() & 15, pos.getY(), pos.getZ() & 15);
BlockState toBlock = set.getBlock(pos.getX() & 15, pos.getY(), pos.getZ() & 15); BlockState toBlock = set.getBlock(pos.getX() & 15, pos.getY(), pos.getZ() & 15);
if (fromBlock != toBlock || tilesTo.containsKey(pos)) { if (fromBlock != toBlock || tilesTo.containsKey(pos)) {
addTileRemove(entry.getValue()); addTileRemove(MainUtil.setPosition(entry.getValue(), entry.getKey().getX(), entry.getKey().getY(),
entry.getKey().getZ()));
} }
} }
} }