Send move_type to at_pre_object_* hooks

This commit is contained in:
Griatch 2025-06-30 17:04:18 +02:00
parent 87c6c7d80a
commit 671cab5cfd

View file

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