mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 21:47:17 +02:00
better account for empty comprehension
This commit is contained in:
parent
bf36163b42
commit
8c895fb1b5
1 changed files with 1 additions and 1 deletions
|
|
@ -1511,7 +1511,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
key = self.key
|
||||
num = 1
|
||||
if self.location:
|
||||
num = max(0, *[
|
||||
num = max([0]+[
|
||||
int(obj.key.lstrip(key))
|
||||
for obj in self.location.contents
|
||||
if obj.key.startswith(key) and obj.key.lstrip(key).isdigit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue