mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 14:37:17 +02:00
Reproduce latest PR fix for develop
This commit is contained in:
parent
bf372df548
commit
51f8f083c6
1 changed files with 2 additions and 0 deletions
|
|
@ -555,6 +555,8 @@ def inside(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
want also nested objects to pass the lock, use the `insiderecursive`
|
||||
lockfunc.
|
||||
"""
|
||||
if hasattr(accessed_obj, "obj"):
|
||||
accessed_obj = accessed_obj.obj
|
||||
return accessing_obj.location == accessed_obj
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue