Fixes #5823

Fixes #5823.
Adds proximity check to prevent telekinetic taping of doors.