Send move_type to at_pre_object_* hooks
This commit is contained in:
parent
87c6c7d80a
commit
671cab5cfd
1 changed files with 2 additions and 2 deletions
|
|
@ -1267,7 +1267,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
||||||
# check if source location lets us go
|
# check if source location lets us go
|
||||||
try:
|
try:
|
||||||
if source_location and not source_location.at_pre_object_leave(
|
if source_location and not source_location.at_pre_object_leave(
|
||||||
self, destination, **kwargs
|
self, destination, move_type=move_type, **kwargs
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
@ -1276,7 +1276,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
||||||
# check if destination accepts us
|
# check if destination accepts us
|
||||||
try:
|
try:
|
||||||
if destination and not destination.at_pre_object_receive(
|
if destination and not destination.at_pre_object_receive(
|
||||||
self, source_location, **kwargs
|
self, source_location, move_type=move_type, **kwargs
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue