Fixed ContainerBonusControl.OnOpenContainer() running on doors

This commit is contained in:
Eddoursul 2024-02-13 20:11:55 +01:00
parent 8c7c54aa4f
commit 629a8e3b1e
2 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ Key refKey = akTargetRef.GetKey()
if refKey && akActor.GetItemCount(refKey) > 0 if refKey && akActor.GetItemCount(refKey) > 0
bool bLocked = akTargetRef.IsLocked() bool bLocked = akTargetRef.IsLocked()
akTargetRef.Activate(akActor, True) akTargetRef.Activate(akActor, True)
if bLocked if bLocked && akTargetRef.GetBaseObject() as Container
ContainerBonusControl.OnOpenContainer(akTargetRef) ContainerBonusControl.OnOpenContainer(akTargetRef)
endif endif
return return