Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Sep 20, 2024
1 parent f23d430 commit 5554acb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,9 @@ public boolean apply(Extent orDefault, BlockVector3 get, BlockVector3 set) throw
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;
}
Expand Down

0 comments on commit 5554acb

Please sign in to comment.