mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Clean up Game::handleDigging() and some related parts
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user