diff options
| author | Ubuntu <github@matdoes.dev> | 2023-02-10 02:06:41 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2023-02-10 02:06:41 +0000 |
| commit | ef91f436c0bbfe776385301001edfdc8371530f5 (patch) | |
| tree | 7422e3b0ebbc0241da34c04764dfba34c7328629 | |
| parent | 9d4f738d4e66adf0796e163d1c9368aaba906bba (diff) | |
| download | azalea-drasl-ef91f436c0bbfe776385301001edfdc8371530f5.tar.xz | |
change one of the blocks examples
| -rwxr-xr-x | azalea-block/README.md | 5 |
1 files 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::<dyn Block>::from(block_state); ``` ## Block trait |
