@ -183,10 +183,8 @@ impl Inventory {
self.0.iter()
.enumerate()
.fold([InventoryItem::default(); 30], |mut inventory, (index, item)| {
log::warn!("inv item: {:?}", item);
if let Some(i) = item {
let bytes = i.item.as_bytes();
log::warn!("inv item bytes:{:?} ", bytes);
inventory[index].data1.copy_from_slice(&bytes[0..12]);
inventory[index].item_id = i.id.0;