diff --git a/server/src/cmd.rs b/server/src/cmd.rs index 6d088f68f6..2ed4cd49e0 100644 --- a/server/src/cmd.rs +++ b/server/src/cmd.rs @@ -573,7 +573,7 @@ fn handle_make_rgb( action: &ChatCommand, ) -> CmdResult<()> { if let (Some(block_name), Some(r), Some(g), Some(b)) = scan_fmt_some!(&args, &action.arg_fmt(), String, u8, u8, u8) { - if let Ok(bk) = BlockKind::try_from(block_name.as_str()) { + if let Ok(bk) = BlockKind::from_str(block_name.as_str()) { let pos = position(server, target, "target")?; let pos = pos.0.map(|e| e.floor() as i32); let new_block = Block::new(bk, Rgb::new(r, g, b));