mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-12 16:58:39 +00:00
Rats are now eatable. Also made their selection box move smoothly.
This commit is contained in:
parent
4556c212db
commit
d62ae0e18b
10 changed files with 140 additions and 57 deletions
|
@ -215,6 +215,18 @@ InventoryItem * ItemSAO::createInventoryItem()
|
|||
}
|
||||
}
|
||||
|
||||
void ItemSAO::rightClick(Player *player)
|
||||
{
|
||||
dstream<<__FUNCTION_NAME<<std::endl;
|
||||
InventoryItem *item = createInventoryItem();
|
||||
if(item == NULL)
|
||||
return;
|
||||
|
||||
bool to_be_deleted = item->use(m_env, player);
|
||||
|
||||
if(to_be_deleted)
|
||||
m_removed = true;
|
||||
}
|
||||
|
||||
/*
|
||||
RatSAO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue