File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
pumpkin-world/src/block/entities Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ pub fn block_entity_from_generic<T: BlockEntity>(nbt: &NbtCompound) -> T {
96
96
pub fn block_entity_from_nbt ( nbt : & NbtCompound ) -> Option < Arc < dyn BlockEntity > > {
97
97
Some ( match nbt. get_string ( "id" ) . unwrap ( ) {
98
98
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
+ }
100
102
SignBlockEntity :: ID => Arc :: new ( block_entity_from_generic :: < SignBlockEntity > ( nbt) ) ,
101
103
BedBlockEntity :: ID => Arc :: new ( block_entity_from_generic :: < BedBlockEntity > ( nbt) ) ,
102
104
ComparatorBlockEntity :: ID => {
You can’t perform that action at this time.
0 commit comments