branch sync, Constructable can now have an accesslevel defined.
This commit is contained in:
parent
fede41b710
commit
5d78b17be1
7 changed files with 52 additions and 11 deletions
|
|
@ -16,7 +16,7 @@ namespace Server.ContextMenus
|
|||
|
||||
public override void OnClick()
|
||||
{
|
||||
if ( m_Food.Deleted || !m_Food.Movable || !m_From.CheckAlive() )
|
||||
if ( m_Food.Deleted || !m_Food.Movable || !m_From.CheckAlive() || !m_Food.CheckItemUse( m_From ) )
|
||||
return;
|
||||
|
||||
m_Food.Eat( m_From );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue