From ef91f436c0bbfe776385301001edfdc8371530f5 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 10 Feb 2023 02:06:41 +0000 Subject: [PATCH] change one of the blocks examples --- azalea-block/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azalea-block/README.md b/azalea-block/README.md index a2a72352..d85d5bb1 100755 --- a/azalea-block/README.md +++ b/azalea-block/README.md @@ -8,8 +8,9 @@ There's three block types, used for different things. You can (mostly) freely co ``` -# use azalea_block::BlockState; -let block_state: BlockState = azalea_registry::Block::Jukebox.into(); +# use azalea_block::{Block, BlockState}; +# let block_state = BlockState::from(azalea_registry::Block::Jukebox); +let block = Box::::from(block_state); ``` ## Block trait