mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clean up Game::handleDigging() and some related parts
This commit is contained in:
parent
13a8948edd
commit
bbdb1929c6
3 changed files with 34 additions and 44 deletions
|
@ -250,7 +250,7 @@ std::string ItemStack::getItemString(bool include_meta) const
|
|||
return os.str();
|
||||
}
|
||||
|
||||
std::string ItemStack::getDescription(IItemDefManager *itemdef) const
|
||||
std::string ItemStack::getDescription(const IItemDefManager *itemdef) const
|
||||
{
|
||||
std::string desc = metadata.getString("description");
|
||||
if (desc.empty())
|
||||
|
@ -258,7 +258,7 @@ std::string ItemStack::getDescription(IItemDefManager *itemdef) const
|
|||
return desc.empty() ? name : desc;
|
||||
}
|
||||
|
||||
std::string ItemStack::getShortDescription(IItemDefManager *itemdef) const
|
||||
std::string ItemStack::getShortDescription(const IItemDefManager *itemdef) const
|
||||
{
|
||||
std::string desc = metadata.getString("short_description");
|
||||
if (desc.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue