Skip to content

Commit a34bd42

Browse files
committed
fix: Fix formatting
1 parent baa7176 commit a34bd42

File tree

1 file changed

+3
-1
lines changed
  • pumpkin-world/src/block/entities

1 file changed

+3
-1
lines changed

pumpkin-world/src/block/entities/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ pub fn block_entity_from_generic<T: BlockEntity>(nbt: &NbtCompound) -> T {
9696
pub fn block_entity_from_nbt(nbt: &NbtCompound) -> Option<Arc<dyn BlockEntity>> {
9797
Some(match nbt.get_string("id").unwrap() {
9898
ChestBlockEntity::ID => Arc::new(block_entity_from_generic::<ChestBlockEntity>(nbt)),
99-
EnderChestBlockEntity::ID => Arc::new(block_entity_from_generic::<EnderChestBlockEntity>(nbt)),
99+
EnderChestBlockEntity::ID => {
100+
Arc::new(block_entity_from_generic::<EnderChestBlockEntity>(nbt))
101+
}
100102
SignBlockEntity::ID => Arc::new(block_entity_from_generic::<SignBlockEntity>(nbt)),
101103
BedBlockEntity::ID => Arc::new(block_entity_from_generic::<BedBlockEntity>(nbt)),
102104
ComparatorBlockEntity::ID => {

0 commit comments

Comments
 (0)