crash--
This commit is contained in:
@@ -15,6 +15,10 @@ class Item(models.Model):
|
||||
|
||||
@classmethod
|
||||
def get(cls, material, damage=0, data=0):
|
||||
if damage is None:
|
||||
damage = 0
|
||||
if data is None:
|
||||
data = 0
|
||||
return cls.objects.get_or_create(material=material, damage=damage,
|
||||
data=data)[0]
|
||||
|
||||
|
Reference in New Issue
Block a user