Skip to content

Commit 2728c64

Browse files
authored
Merge pull request #2742 from BentoBoxWorld/2741_bsb_copy
Fix for blueprint copying #2741
2 parents 1f89311 + cc663c0 commit 2728c64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/world/bentobox/bentobox/blueprints/BlueprintClipboard.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public class BlueprintClipboard {
5858
/**
5959
* Used to filter out hidden DisplayEntity armor stands when copying
6060
*/
61-
private NamespacedKey key;
6261
private @Nullable Blueprint blueprint;
6362
private @Nullable Location pos1;
6463
private @Nullable Location pos2;
@@ -84,7 +83,6 @@ public class BlueprintClipboard {
8483
public BlueprintClipboard(@NonNull Blueprint blueprint) {
8584
this();
8685
this.blueprint = blueprint;
87-
this.key = new NamespacedKey(BentoBox.getInstance(), "associatedDisplayEntity");
8886
}
8987

9088
public BlueprintClipboard() {
@@ -165,6 +163,7 @@ private void copyAsync(World world, User user, List<Vector> vectorsToCopy, int s
165163
return;
166164
}
167165
copying = true;
166+
NamespacedKey key = new NamespacedKey(BentoBox.getInstance(), "associatedDisplayEntity");
168167
vectorsToCopy.stream().skip(index).limit(speed).forEach(v -> {
169168
List<Entity> ents = world.getEntities().stream()
170169
.filter(Objects::nonNull)

0 commit comments

Comments
 (0)