mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
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
|
||||
try:
|
||||
if source_location and not source_location.at_pre_object_leave(
|
||||
self, destination, **kwargs
|
||||
self, destination, move_type=move_type, **kwargs
|
||||
):
|
||||
return False
|
||||
except Exception as err:
|
||||
|
|
@ -1276,7 +1276,7 @@ class DefaultObject(ObjectDB, metaclass=TypeclassBase):
|
|||
# check if destination accepts us
|
||||
try:
|
||||
if destination and not destination.at_pre_object_receive(
|
||||
self, source_location, **kwargs
|
||||
self, source_location, move_type=move_type, **kwargs
|
||||
):
|
||||
return False
|
||||
except Exception as err:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue