From 66bf033a4389666b9d232f44ff31afec541d3d4a Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sun, 27 Jun 2021 19:41:51 +0100 Subject: [PATCH] Fixed make_rgb --- server/src/cmd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));