mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fixed MBOItem inventory images
This commit is contained in:
parent
80acdab93b
commit
a4179abb1b
1 changed files with 2 additions and 2 deletions
|
@ -98,11 +98,11 @@ video::ITexture * MapBlockObjectItem::getImage()
|
||||||
{
|
{
|
||||||
if(m_inventorystring.substr(0,3) == "Rat")
|
if(m_inventorystring.substr(0,3) == "Rat")
|
||||||
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("rat.png").c_str());
|
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("rat.png").c_str());
|
||||||
return g_irrlicht->getTexture(porting::getDataPath("rat.png").c_str());
|
return g_irrlicht->getTexture("rat.png");
|
||||||
|
|
||||||
if(m_inventorystring.substr(0,4) == "Sign")
|
if(m_inventorystring.substr(0,4) == "Sign")
|
||||||
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("sign.png").c_str());
|
//return g_device->getVideoDriver()->getTexture(porting::getDataPath("sign.png").c_str());
|
||||||
return g_irrlicht->getTexture(porting::getDataPath("sign.png").c_str());
|
return g_irrlicht->getTexture("sign.png");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue