Fixed a bug in mob movement that had it ignore its own check for traversal-permission

This commit is contained in:
Griatch 2015-02-22 14:34:35 +01:00
parent 4e11b2b5b5
commit c1243a9d6d
4 changed files with 52 additions and 390 deletions

View file

@ -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