mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Rats are now eatable. Also made their selection box move smoothly.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user