Fixes inventory bug

Fixes the bug where you couldn't interact with someone's inventory when
they were on top of a structure, such as a table
This commit is contained in:
VampyrBytes
2014-07-17 05:48:59 +01:00
parent e887c855c1
commit b3f396bfff
2 changed files with 14 additions and 1 deletions
@@ -607,7 +607,7 @@ It can still be worn/put on as normal.
if(!source || !target) return //Target or source no longer exist
if(source.loc != s_loc) return //source has moved
if(target.loc != t_loc) return //target has moved
if(LinkBlocked(s_loc,t_loc)) return //Use a proxi!
if (LinkBlockedUnclimbable(t_loc, s_loc)) return
if(item && source.get_active_hand() != item) return //Swapped hands / removed item from the active one
if ((source.restrained() || source.stat)) return //Source restrained or unconscious / dead