mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Fixed bug in destroy command; cleaned up @dig a bit.
This commit is contained in:
parent
9b6bd7125f
commit
557c4eb07b
3 changed files with 35 additions and 28 deletions
|
|
@ -569,12 +569,12 @@ class Object(models.Model):
|
|||
for obj in objs:
|
||||
home = obj.get_home()
|
||||
text = "object"
|
||||
|
||||
|
||||
if obj.is_player():
|
||||
text = "player"
|
||||
|
||||
# Obviously, we can't send it back to here.
|
||||
if home.id == self.id:
|
||||
if home and home.id == self.id:
|
||||
obj.home = default_home
|
||||
obj.save()
|
||||
home = default_home
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue