From 48c24ec8b011d081550dc78329cbe61de67b30e9 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 5 Apr 2020 20:04:33 +0200 Subject: items are now mostly replaced by itemids, with a mapping to the item in the encyclopedia --- src/room.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/room.rs') diff --git a/src/room.rs b/src/room.rs index 2b4fb7e..46948cb 100644 --- a/src/room.rs +++ b/src/room.rs @@ -250,7 +250,7 @@ impl <'a, 'b>Room<'a, 'b> { Some(PlayerState::create( player.id.clone(), self.id.clone(), - inventory.items.iter().map(|(item, e)| (item.ent.clone(), *e)).collect(), + inventory.items.iter().map(|entry| (entry.itemid.clone(), entry.is_equipped)).collect(), inventory.capacity, health.health, health.maxhealth, -- cgit