From 646a683f22370bfd72dd5ff992a69ca5774f72ec Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Sat, 12 Feb 2022 13:38:37 +0100 Subject: [PATCH] fix: add coordinates to tile-entity nbt component (#1607) --- .../core/history/changeset/AbstractChangeSet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/history/changeset/AbstractChangeSet.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/history/changeset/AbstractChangeSet.java index cceb1b7cd..70c3b76ae 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/history/changeset/AbstractChangeSet.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/history/changeset/AbstractChangeSet.java @@ -136,7 +136,8 @@ public abstract class AbstractChangeSet implements ChangeSet, IBatchProcessor { BlockState fromBlock = get.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)) { - addTileRemove(entry.getValue()); + addTileRemove(MainUtil.setPosition(entry.getValue(), entry.getKey().getX(), entry.getKey().getY(), + entry.getKey().getZ())); } } }