From a3f03756b6e6c3925c955f70114ee50f30a703f9 Mon Sep 17 00:00:00 2001 From: alemidev Date: Fri, 14 Jan 2022 16:48:01 +0100 Subject: [PATCH] uggh --- aiocraft/mc/definitions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiocraft/mc/definitions.py b/aiocraft/mc/definitions.py index 4d682c4..2258806 100644 --- a/aiocraft/mc/definitions.py +++ b/aiocraft/mc/definitions.py @@ -125,12 +125,12 @@ class Enchantment: type : EnchantmentType level : int - def __init__(self, type:EnchantmentType=None, id:int=None, level:int=1): + def __init__(self, type:EnchantmentType=None, id:int=None, lvl:int=1): if not type and not id: raise ValueError("No enchantment type or enchantment id provided") self.type = type or EnchantmentType(id) self.eid = self.type.value - self.level = level + self.level = lvl def repr(self) -> str: return f""