From dd8c6b1491edb0aa3611787e57938ab0cc7efaac Mon Sep 17 00:00:00 2001 From: alemidev Date: Tue, 4 Jan 2022 20:22:00 +0100 Subject: [PATCH] fix for new nbt format --- aiocraft/util/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiocraft/util/helpers.py b/aiocraft/util/helpers.py index ea89fe9..34bab6e 100644 --- a/aiocraft/util/helpers.py +++ b/aiocraft/util/helpers.py @@ -65,7 +65,7 @@ def format_item(item:dict, compact=False, nbt:bool=False) -> str: item_id = f"{item['id']:03d}" item_count = f"{item['count']}x" if item['count'] > 1 else '' item_damage = f"|{item['damage']:03d}" if 'damage' in item else '' - item_nbt = item['nbt'].pretty() if item['nbt'] else '' + item_nbt = str(item['nbt']) if item['nbt'] else '' if compact: return f"[{item_id:03d}]" if nbt: