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

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2022-02-12 13:38:37 +01:00 committet von GitHub
Ursprung 7da993d3f1
Commit 646a683f22
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -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()));
} }
} }
} }