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/assemblage.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/assemblage.rs') diff --git a/src/assemblage.rs b/src/assemblage.rs index 6856151..aa3154f 100644 --- a/src/assemblage.rs +++ b/src/assemblage.rs @@ -98,15 +98,9 @@ impl Assemblage { }])); } // item component is common too - if let Some(action) = val.get("item") { + if let Some(item) = val.get("item") { components.push(json!(["Item", { - "ent": ["self", null], - "name": if let Some(n) = name { - json!(["string", n]) - } else { - json!(["name", Value::Null]) - }, - "action": ["action", action] + "item": ["string", item] }])); } // and so is flags -- cgit