From 4664d62e52ea22a684ee6d8dc7adabb2193ddd28 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 27 Jun 2024 12:10:01 +0100 Subject: [PATCH] Cleanup --- .../core/extent/processor/PlacementStateProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java index aa05dc52f..694a11a5e 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extent/processor/PlacementStateProcessor.java @@ -472,9 +472,9 @@ public abstract class PlacementStateProcessor extends AbstractDelegateExtent imp if (block.getOrdinalChar() != newOrdinal) { BlockState newState = BlockTypesCache.states[newOrdinal]; orDefault.setBlock(set.x(), set.y(), set.z(), newState); - LinCompoundTag nbt = block.getNbt(); + CompoundTag nbt = block.getNbtData(); if (nbt != null && newState.getBlockType() == block.getBlockType()) { - orDefault.setTile(set.x(), set.y(), set.z(), new CompoundTag(nbt)); + orDefault.setTile(set.x(), set.y(), set.z(), nbt); } return true; }