mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
Convert any inventory item into a mesh, bring back InventoryItem::getImageRay(), some const-correctness fixes
This commit is contained in:
@@ -158,7 +158,7 @@ InventoryItem *MaterialItem::createCookResult() const
|
||||
*/
|
||||
|
||||
#ifndef SERVER
|
||||
video::ITexture * CraftItem::getImage()
|
||||
video::ITexture * CraftItem::getImage() const
|
||||
{
|
||||
if(g_texturesource == NULL)
|
||||
return NULL;
|
||||
@@ -224,7 +224,7 @@ bool CraftItem::use(ServerEnvironment *env, Player *player)
|
||||
TODO: Remove
|
||||
*/
|
||||
#ifndef SERVER
|
||||
video::ITexture * MapBlockObjectItem::getImage()
|
||||
video::ITexture * MapBlockObjectItem::getImage() const
|
||||
{
|
||||
if(m_inventorystring.substr(0,3) == "Rat")
|
||||
return g_texturesource->getTextureRaw("rat.png");
|
||||
|
Reference in New Issue
Block a user