Fixed ContainerBonusControl.OnOpenContainer() running on doors
This commit is contained in:
parent
8c7c54aa4f
commit
629a8e3b1e
Binary file not shown.
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user