Non-humanoids can't interact with items
This commit is contained in:
@@ -157,7 +157,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public bool CanInteract
|
public bool CanInteract
|
||||||
{
|
{
|
||||||
get { return AllowInput && !LockHands; }
|
get { return AllowInput && IsHumanoid && !LockHands; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector2 CursorPosition
|
public Vector2 CursorPosition
|
||||||
@@ -1218,7 +1218,7 @@ namespace Barotrauma
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!AllowInput || LockHands)
|
if (!CanInteract)
|
||||||
{
|
{
|
||||||
if (selectedCharacter != null)
|
if (selectedCharacter != null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user