From 93d98a35170b92a601eacb6bee6785f2900df8bc Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 3 Dec 2019 22:50:41 -0800 Subject: [PATCH] set actual ship name --- src/packet/ship.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packet/ship.rs b/src/packet/ship.rs index 0986d2e..1b8388a 100644 --- a/src/packet/ship.rs +++ b/src/packet/ship.rs @@ -60,13 +60,13 @@ pub struct ShipBlockList { } impl ShipBlockList { - pub fn new(num_blocks: usize) -> ShipBlockList { + pub fn new(shipname: &str, num_blocks: usize) -> ShipBlockList { ShipBlockList { shipblock: BlockEntry { menu: BLOCK_MENU_ID, item: 0, flags: 0, - name: utf8_to_utf16_array!("Shipname", 0x11) + name: utf8_to_utf16_array!(shipname, 0x11) }, blocks: (0..num_blocks).map(|i| BlockEntry { menu: BLOCK_MENU_ID,