From 8bef9327fefc4022cdcbe30d58ba39b6b68a5aa3 Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 17 Dec 2021 14:22:27 +0100 Subject: [PATCH] oof --- aiocraft/util/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiocraft/util/helpers.py b/aiocraft/util/helpers.py index 8ecc7f1..b07c248 100644 --- a/aiocraft/util/helpers.py +++ b/aiocraft/util/helpers.py @@ -65,10 +65,10 @@ def format_item(item:dict, compact=False, nbt:bool=False) -> str: item_id = f"{item['id']:03d}" item_count = f"x{item['count']}" if 'count' in item else '' item_damage = f"|{item['damage']:03d}" if 'damage' in item else '' - nbt = item['nbt'].pretty() if 'nbt' in item else '' + item_nbt = item['nbt'].pretty() if 'nbt' in item else '' if compact: return f"[{item_id:03d}]" if nbt: - return f"[{item_id}{item_count}{item_damage}]({nbt})" + return f"[{item_id}{item_count}{item_damage}]({item_nbt})" return f"[{item_id}{item_count}{item_damage}]"