Skip to content

Commit

Permalink
Fix block entities not setting level before calling clearRemoved
Browse files Browse the repository at this point in the history
  • Loading branch information
robotgryphon committed Jan 5, 2025
1 parent 5019ecf commit fcee352
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public void setBlockEntity(BlockEntity blockEntity) {
removeBlockEntity(blockEntity.getBlockPos()); // remove current block entity

if(blockEntity.getBlockState().hasBlockEntity()) {
blockEntity.clearRemoved();
blockEntity.setLevel(owningLevel);
blockEntity.clearRemoved();
blockEntities.put(blockEntity.getBlockPos().asLong(), blockEntity);
}
}
Expand Down

0 comments on commit fcee352

Please sign in to comment.