Fixed a bug in mob movement that had it ignore its own check for traversal-permission
This commit is contained in:
parent
4e11b2b5b5
commit
c1243a9d6d
4 changed files with 52 additions and 390 deletions
|
|
@ -87,7 +87,7 @@ class Ticker(object):
|
|||
"""
|
||||
for store_key, (obj, args, kwargs) in self.subscriptions.items():
|
||||
hook_key = yield kwargs.get("_hook_key", "at_tick")
|
||||
if not obj:
|
||||
if not obj or not obj.pk:
|
||||
# object was deleted between calls
|
||||
self.remove(store_key)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue