From 9c61b297d36b5010c30a43764a13f021538a6e18 Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 17 Dec 2021 14:24:44 +0100 Subject: [PATCH] ocd --- aiocraft/util/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aiocraft/util/helpers.py b/aiocraft/util/helpers.py index b07c248..c09be28 100644 --- a/aiocraft/util/helpers.py +++ b/aiocraft/util/helpers.py @@ -63,12 +63,12 @@ def format_item(item:dict, compact=False, nbt:bool=False) -> str: if not item: return "[ ]" item_id = f"{item['id']:03d}" - item_count = f"x{item['count']}" if 'count' in item else '' + item_count = f"{item['count']}x" if 'count' in item else '' item_damage = f"|{item['damage']:03d}" if 'damage' 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}]({item_nbt})" - return f"[{item_id}{item_count}{item_damage}]" + return f"[{item_count}{item_id}{item_damage}]({item_nbt})" + return f"[{item_count}{item_id}{item_damage}]"